Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
/ dresscode Public archive

An experimental, mixin-supported, alternative to the BEM naming convention

Notifications You must be signed in to change notification settings

voyagerstudio/dresscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dresscode

An experimental (meaning: do not use this) mixin-supported alternative to the BEM naming convention.

Gif of Jeff Goldblum in Jurrassic Park with the quote "Your scientists were so preoccupied with whether or not they could, they never stopped to think if they should"

Demo of Dresscode in use, from the example case included in the repo.


Use Case: turns typical BEM classes like this:

<!-- Typical BEM -->
<div class="header--signed-out__logo--dark-mode">

into this:

<!-- Dresscode -->
<div class="header~signed-out:logo~dark-mode">

examples:

  • <div class="parent">
  • <div class="parent:child">
  • <div class="parent~variant:child">
  • <div class="parent:child~variant">
  • <div class="parent~variant:child~variant">

About

An experimental, mixin-supported, alternative to the BEM naming convention

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages