renaming to grayscale

This commit is contained in:
Geoff Doty 2021-10-16 00:08:04 -04:00
parent 9c8d00fe34
commit 11496a9beb
5 changed files with 25 additions and 33 deletions

View File

@ -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
<div style="display: flex">
<img src="example/img/steelblue-dark.png" width="400">
<img src="example/img/steelblue-light.png" width="400">
</div>
## 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

View File

@ -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,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>")}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))}

View File

@ -4,9 +4,10 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scales CSS</title>
<link rel="stylesheet" href="../src/scales.css" />
<title>Grayscale CSS</title>
<link rel="stylesheet" href="../src/grayscale.css" />
<style>
html {min-width: 540px}
.box {
height: 1.5em;
min-width: 1.5em;
@ -32,12 +33,12 @@
</div>
<div style="text-align: center;">
<div class="box" style="background: var(--bg); color: var(--theme)">
SCALES
GRAYSCALE
</div>
<div class="box" style="background:var(--gray); padding: 0 .5em 0 .5em;">CSS</div>
<div class="box" style="background:var(--theme); padding: 0 .5em 0 .5em;">CSS</div>
</div>
<div style="text-align: right;">
<em>Minimalist CSS Dream</em>
<em>CSS For Minimalists</em>
</div>
</section>
<article>

View File

@ -1,4 +1,4 @@
/* 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%;