diff --git a/README.md b/README.md index 8a4451a..59f2529 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,36 @@ -# Scales CSS +# Grayscale CSS -> A Minimalist Dream of CSS +> CSS For Minimalists -Scales CSS provides a minimalist approach to styling, placing layout in the fore-front, removing excess distractions, allowing developers to prototype designs rapidly -- add flair later. +Grayscale is a tiny-dynamic-classless css stylesheet designed for rapid prototyping. Use AS-IS or... -Use at of the box or set a single custom `theme` color and watch the styles change dynamically. +**CHANGE A SINGLE COLOR** and **REDEFINE YOUR ENTIRE THEME**, complete with *light* and *dark* modes. -Extend with minimal styles to create your final theme/design. +It maybe `classless`, but it oozes style that you can [extend](src/extras)! -All-in, this package is **only 2kb gzipped!** +All in **2kb gzipped!** ### Features -- Tiny, 220 lines, 13 vars, 1 class, 4kb minified, 2kb gzipped -- Classless -- Single `.grid` class utility helper for auto-adjusting layout solution -- Customizable theme, font, border-radius, line-height, element spacing -- Extendable, its classless -- add your own classes! -- Pure CSS3 +- Tiny, 2kb +- Classless +- Dynamic, 15 Custom CSS Vars +- Pure CSS Theme Generation +- Includes Light and Dark Themes -> WARNING: only supports CSS3 ever-green browsers, no IE here ;) +> WARNING: ever-green browsers need only apply ;) ## Check it Out -**Scales CSS** builds dynamic themes based on a single color. the default theme is based on `steelblue` , and has a `dark` and `light` variant (*default dark*) +While **Grayscale CSS** can generate a dynamic theme based on A SINGLE COLOR, it defaults to a beautiful theme is based on `steelblue` , and of course that comes in both `light` and `dark` variants
- -## Develop - -clone repository and... TBD - +Add `data-theme="dark"` to the `html` tag for a taste of the dark side ## LICENSE @@ -43,24 +38,20 @@ clone repository and... TBD - [MIT](LICENSE) - ## TODO -- Get Download to work with custom dist download +Still have a bunch of tiny tweaks and extras to build, but th -- clamp themes, saturation and lightness above 70, or below 30 just wont work +- clamp themes, saturation and lightness above 80, or below 20 just wont work - add theme to parts, checkbox, radio button, range sliders ect... - styles for `details` & `summary` -- add accent color (auto or manual) +- ability for an accent color (defaults to theme) - Tweak `code`, `pre`, `kbd` - input highlight on focus -- muted color -- might be ok - - documentation around `main` , `article`, `section` tags - diff --git a/dist/scales.min.css b/dist/grayscale.min.css similarity index 98% rename from dist/scales.min.css rename to dist/grayscale.min.css index 885a950..859ef41 100644 --- a/dist/scales.min.css +++ b/dist/grayscale.min.css @@ -1,2 +1,2 @@ -/* Scales CSS v:0.3 | MIT LICENSE | https://github.com/n2geoff/scales */ +/* Scales CSS v:0.4 | MIT LICENSE | https://github.com/n2geoff/scales */ :root{--Hsl:207;--hSl:50%;--hsL:50%;--theme:hsl(var(--Hsl), var(--hSl), var(--hsL));--font:Arial, Helvetica, san-serif;--line:1.5;--weight:400;--size:20px;--radius:0rem;--space:1rem}:root:not([data-theme=dark]),[data-theme=light]{--light:hsl(var(--Hsl), var(--hSl), calc(var(--hsL) + 35%));--dark:hsl(var(--Hsl), var(--hSl), calc(var(--hsL) - 35%));--gray:hsl(var(--Hsl), 15%, 75%);--bg:hsl(var(--Hsl), 0%, 95%);--fg:hsl(var(--Hsl), 0%, 5%)}[data-theme=dark]{--light:hsl(var(--Hsl), var(--hSl), calc(var(--hsL) - 35%));--dark:hsl(var(--Hsl), var(--hSl), calc(var(--hsL) + 35%));--gray:hsl(var(--Hsl), 15%, 15%);--bg:hsl(var(--Hsl), 50%, 5%);--fg:hsl(var(--Hsl), 20%, 90%)}*,:after,:before,body,html{box-sizing:border-box}body,html{background:var(--bg);margin:0;font-family:var(--font);font-weight:var(--weight);line-height:var(--line);padding:0}audio,embed,iframe,img,object,video{height:auto;max-width:100%;border:0}main{margin:0 auto;height:100vh;max-width:1140px}table{background-color:var(--bg);border-collapse:collapse;border-spacing:0;width:100%}tbody{border-top:2px solid var(--theme)}th{text-align:left;color:var(--dark)}td,th{padding:calc(var(--space)/2);border-bottom:1px solid var(--theme)}a{color:var(--theme)}a:hover,body,html,input,label{color:var(--fg)}article,blockquote,main{padding:var(--space)}blockquote{margin:var(--space) 0;border-left:calc(var(--space)/2) solid var(--dark);background:hsl(var(--Hsl) var(--hSl) var(--hsL));color:var(--bg)}code,kbd,pre{font-family:monospace;display:inline-block;white-space:pre;margin:0;padding:0}code{margin:0 calc(var(--space)/4);padding:0 calc(var(--space)/4);background:var(--bg)}hr{border:1px solid}h1,h2,h3,h4,h5,h6{text-transform:capitalize}h1{font-size:calc(var(--size)*2);color:var(--dark)}h2,hr{color:var(--theme)}h3{border-bottom:1px solid var(--theme)}small{color:var(--gray)}section{margin-bottom:var(--space)}article{background-color:var(--light)}body,html,input,label{font-size:var(--size)}label{font-weight:600;text-transform:capitalize;margin:0 calc(var(--size)/2)}input{display:block;outline:0;box-sizing:border-box;background-color:var(--bg);width:100%;height:calc(var(--size)*3);border:1px solid var(--theme);border-radius:var(--radius);padding:var(--space);margin-bottom:var(--space);margin-right:var(--space)}input:disabled{background:var(--gray);color:var(--bg);cursor:not-allowed}input[type=checkbox],input[type=radio]{background:red;display:inline-block;padding:0;margin:0;width:calc(var(--size)*.8);height:calc(var(--size)*.8)}button,input[type=submit],select,textarea{font-size:var(--size);height:calc(var(--size)*3)}input[type=submit]{background-color:var(--theme);color:var(--bg);padding:0;margin:var(--space) 0;cursor:pointer}button,select,textarea{display:inline-block;outline:0;font-family:var(--font);width:100%;border:1px solid var(--theme);color:var(--theme);background-color:var(--bg);border-radius:var(--radius);margin-bottom:var(--space)}select,textarea{color:var(--fg)}button,select{padding:0 var(--space);cursor:pointer}select{background:var(--bg) no-repeat 100%;appearance:none;background-size:1ex;background-origin:content-box;background-image:url("data:image/svg+xml;utf8,")}textarea{overflow:auto;resize:vertical;height:calc(var(--line)*6rem);padding:var(--space);cursor:text}.grid{display:grid;gap:var(--space);grid-template-columns:repeat(auto-fit,minmax(0,1fr))} \ No newline at end of file diff --git a/example/example.html b/example/example.html index 1b043eb..f6e7380 100644 --- a/example/example.html +++ b/example/example.html @@ -4,9 +4,10 @@ - Scales CSS - + Grayscale CSS +