Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Class-Less CSS Design System Framework that Utilizes the Power of Data Attributes for Styling Components.

License

NotificationsYou must be signed in to change notification settings

jacobxperez/rams

Repository files navigation

Class-Less CSS Design System Framework


rams logo

Table of Contents

About

Rams is a class-less css design system framework that utilizes the power of data attributes for styling components.

Getting Started

  1. Start bydownloading the repository or by cloning Rams

    git clone https://github.com/jacobxperez/rams.git
  2. Install dependencies on your machine withnpm

    npm install

Build

Edit thevariables, addcustom modules and linkedthem toindex.css for compiling.

note: When starting a project with Rams we recommendnot to edit thecore files unless you arecontributing code back to Rams. Any custom modules should go in thecustom folder, this will help you separate your code from Rams.

Compile

On your terminal run these scripts to compile

  • npm run docs (locally runs documentation)
  • npm run dev (serve current development build)
  • npm run build (makes current build and sets url to "/" can be changed onpackage.json)

Features

Rams uses data attributes instead of class to style components.

Grid System

A two column grid with responsive columns:

<articledata-grid="main"><asidedata-column="large-3 medium-3 small-4"><!-- add content --></aside><sectiondata-column="large-9 medium-9 small-4"><!-- add content --></section></article>

Navigation

A simple navigation with flex-box:

<uldata-flex><li><adata-anchordata-state="active"href="">Active</a></li><li><adata-anchorhref="">Anchor</a></li><li><adata-anchorhref="">Anchor</a></li><li><adata-anchorhref="">Anchor</a></li></ul>

A navbar with home link and three tabs:

<navdata-navbar="top"><uldata-flex><li><adata-anchor="navbar"href="">Home</a></li><lidata-item="grow"></li><li><adata-anchor="navbar"href="">Anchor</a></li><li><adata-anchor="navbar"href="">Anchor</a></li><li><adata-anchor="navbar"href="">Anchor</a></li></ul></nav>

Dropdown

A dropdown navigation menu:

<uldata-flex><lidata-position="relative"><adata-toggle="pop"data-anchorhref="">      Dropdown<spandata-icon="&#xe043;"></span></a><uldata-dropbox="menu"data-position="left"><li><adata-anchor="menu"href="">Anchor</a></li><li><adata-anchor="menu"href="">Anchor</a></li><li><adata-anchor="menu"href="">Anchor</a></li></ul></li></ul>

Tooltip for displaying additional context on hover or on click:

<spandata-toggle="tooltip">  Tooltip!<spandata-dropbox="tooltip"><!-- add content --></span></span>

Reveal extra page content like an accordion:

<uldata-box="border leading"><lidata-box="border-bottom"><adata-toggledata-anchordata-flex><strongdata-item="grow">Content</strong><spandata-icon="&#xe045;"></span></a><divdata-dropboxdata-box="padding-x padding-bottom"><!-- add content --></div></li></ul>

Buttons

Includes several button styles:

<buttondata-button="primary">button</button><buttondata-button="outline">button</button><buttondata-button="primary outline">button</button><buttondata-button="link">button</button>

Examples

These examples incorporate Rams with custom modules.

note: These examples may contain an older version of Rams.

Contributing

If you are interested in contributing to this project, please start by reading ourcontributing guidelines.

LICENSE

Copyright (C) 2024Jacob Perez

Licensed under theApache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


[8]ページ先頭

©2009-2025 Movatter.jp