@medyll/cssfabric 0.2.0 → 0.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -38
- package/dist/NewMenu.svelte +41 -0
- package/dist/NewMenu.svelte.d.ts +19 -0
- package/{_generated → dist/_generated}/cssFabric.vars.json +12 -12
- package/dist/_generated/cssFabric.vars.md +268 -0
- package/dist/cssFabric/config.d.ts +29 -0
- package/dist/cssFabric/config.js +29 -0
- package/dist/cssFabric/cssFabricSheet.d.ts +1226 -0
- package/dist/cssFabric/cssFabricSheet.js +1270 -0
- package/dist/cssFabric/cssProperties.d.ts +27 -0
- package/dist/cssFabric/cssProperties.js +343 -0
- package/dist/cssFabric/cssVariationsAi.d.ts +12 -0
- package/dist/cssFabric/cssVariationsAi.js +111 -0
- package/dist/cssFabric/index.d.ts +113 -0
- package/dist/cssFabric/index.js +341 -0
- package/dist/cssf/README.md +197 -0
- package/dist/cssf/cssf.d.ts +1 -0
- package/dist/cssf/cssf.js +12 -0
- package/dist/cssf/cssfGuide.d.ts +14 -0
- package/dist/cssf/cssfGuide.js +50 -0
- package/dist/cssf/cssfLib.d.ts +134 -0
- package/dist/cssf/cssfLib.js +116 -0
- package/dist/cssf/cssfModel.d.ts +8 -0
- package/dist/cssf/cssfModel.js +59 -0
- package/dist/cssf/cssfPlugin.d.ts +3 -0
- package/dist/cssf/cssfPlugin.js +37 -0
- package/dist/cssf/cssfTransformer.d.ts +2 -0
- package/dist/cssf/cssfTransformer.js +100 -0
- package/dist/cssf/index.d.ts +4 -0
- package/dist/cssf/index.js +4 -0
- package/dist/cssfVsCode/.vscode/launch.json +17 -0
- package/dist/cssfVsCode/.vscodeignore +4 -0
- package/dist/cssfVsCode/CHANGELOG.md +9 -0
- package/dist/cssfVsCode/README.md +65 -0
- package/dist/cssfVsCode/language-configuration.json +36 -0
- package/dist/cssfVsCode/package.json +40 -0
- package/dist/cssfVsCode/syntaxes/cssf.tmLanguage.json +1868 -0
- package/dist/cssfVsCode/test.cssf +6 -0
- package/dist/cssfVsCode/vsc-extension-quickstart.md +29 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/{init → dist/init}/importCssVars.d.ts +1 -1
- package/{init → dist/init}/importCssVars.js +2 -2
- package/dist/scripts/cssfabric.d.ts +24 -0
- package/{scripts → dist/scripts}/cssfabric.js +43 -43
- package/{scripts → dist/scripts}/cssfabricClassNames.d.ts +14 -14
- package/{scripts → dist/scripts}/cssfabricClassNames.js +146 -146
- package/dist/scripts/index.d.ts +2 -0
- package/{scripts → dist/scripts}/index.js +4 -4
- package/{scripts → dist/scripts}/utils.d.ts +5 -5
- package/{scripts → dist/scripts}/utils.js +38 -38
- package/dist/styles/animation/animation.css +2 -0
- package/{styles → dist/styles}/base/base.css +207 -214
- package/{styles → dist/styles}/base/base.min.css +1 -1
- package/{styles → dist/styles}/box/box.css +1496 -1378
- package/dist/styles/box/box.min.css +1 -0
- package/{styles → dist/styles}/box/box.responsive.css +7036 -5523
- package/dist/styles/box/box.responsive.min.css +1 -0
- package/{styles → dist/styles}/color/color.css +1566 -1564
- package/{styles → dist/styles}/color/color.responsive.css +7781 -6267
- package/dist/styles/color/color.responsive.min.css +1 -0
- package/dist/styles/cssfabric.css +5328 -0
- package/dist/styles/cssfabric.min.css +1 -0
- package/dist/styles/cssfabric.responsive.css +20419 -0
- package/dist/styles/cssfabric.responsive.min.css +1 -0
- package/{styles → dist/styles}/flex/flex.css +125 -123
- package/{styles → dist/styles}/flex/flex.responsive.css +581 -503
- package/dist/styles/flex/flex.responsive.min.css +1 -0
- package/{styles → dist/styles}/grid/grid.css +120 -118
- package/{styles → dist/styles}/grid/grid.responsive.css +501 -483
- package/dist/styles/grid/grid.responsive.min.css +1 -0
- package/{styles → dist/styles}/menu/menu.css +102 -100
- package/{styles → dist/styles}/menu/menu.responsive.css +444 -357
- package/dist/styles/menu/menu.responsive.min.css +1 -0
- package/{styles → dist/styles}/overflow/overflow.css +61 -59
- package/{styles → dist/styles}/overflow/overflow.responsive.css +237 -244
- package/dist/styles/overflow/overflow.responsive.min.css +1 -0
- package/{styles → dist/styles}/scale/scale.css +720 -718
- package/{styles → dist/styles}/scale/scale.responsive.css +3251 -2883
- package/dist/styles/scale/scale.responsive.min.css +1 -0
- package/{styles → dist/styles}/table/table.css +73 -71
- package/{styles → dist/styles}/table/table.responsive.css +371 -295
- package/dist/styles/table/table.responsive.min.css +1 -0
- package/{styles → dist/styles}/text/text.css +152 -150
- package/{styles → dist/styles}/text/text.responsive.css +216 -195
- package/dist/styles/text/text.responsive.min.css +1 -0
- package/{styles → dist/styles}/theme/theme.css +247 -196
- package/{styles → dist/styles}/theme/theme.min.css +1 -1
- package/{styles → dist/styles}/vars.css +412 -413
- package/dist/styles/vars.min.css +1 -0
- package/{styles → dist/styles}/zindex/zindex.css +44 -42
- package/package.json +68 -113
- package/_generated/index.d.ts +0 -3
- package/scripts/cssfabric.d.ts +0 -24
- package/scripts/index.d.ts +0 -2
- package/styles/animation/animation.css +0 -0
- package/styles/box/box.min.css +0 -1
- package/styles/box/box.responsive.min.css +0 -1
- package/styles/color/color.responsive.min.css +0 -1
- package/styles/cssfabric.css +0 -61792
- package/styles/cssfabric.min.css +0 -168
- package/styles/cssfabric.responsive.css +0 -200596
- package/styles/cssfabric.responsive.min.css +0 -108
- package/styles/flex/flex.responsive.min.css +0 -1
- package/styles/grid/grid.responsive.min.css +0 -1
- package/styles/menu/menu.responsive.min.css +0 -1
- package/styles/overflow/overflow.responsive.min.css +0 -1
- package/styles/scale/scale.responsive.min.css +0 -1
- package/styles/table/table.responsive.min.css +0 -1
- package/styles/text/text.responsive.min.css +0 -1
- package/styles/vars.min.css +0 -1
- /package/{_generated → dist/_generated}/export.variables.md +0 -0
- /package/{_generated → dist/_generated}/readme.md +0 -0
- /package/{styles → dist/styles}/animation/animation.min.css +0 -0
- /package/{styles → dist/styles}/color/color.min.css +0 -0
- /package/{styles → dist/styles}/flex/flex.min.css +0 -0
- /package/{styles → dist/styles}/grid/grid.min.css +0 -0
- /package/{styles → dist/styles}/menu/menu.min.css +0 -0
- /package/{styles → dist/styles}/overflow/overflow.min.css +0 -0
- /package/{styles → dist/styles}/scale/scale.min.css +0 -0
- /package/{styles → dist/styles}/table/table.min.css +0 -0
- /package/{styles → dist/styles}/text/text.min.css +0 -0
- /package/{styles → dist/styles}/zindex/zindex.min.css +0 -0
package/README.md
CHANGED
|
@@ -1,38 +1,58 @@
|
|
|
1
|
-
# create-svelte
|
|
2
|
-
|
|
3
|
-
Everything you need to build a Svelte
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
# create-svelte
|
|
2
|
+
|
|
3
|
+
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
|
4
|
+
|
|
5
|
+
Read more about creating a library [in the docs](https://kit.svelte.dev/docs/packaging).
|
|
6
|
+
|
|
7
|
+
## Creating a project
|
|
8
|
+
|
|
9
|
+
If you're seeing this, you've probably already done this step. Congrats!
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# create a new project in the current directory
|
|
13
|
+
npm create svelte@latest
|
|
14
|
+
|
|
15
|
+
# create a new project in my-app
|
|
16
|
+
npm create svelte@latest my-app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Developing
|
|
20
|
+
|
|
21
|
+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run dev
|
|
25
|
+
|
|
26
|
+
# or start the server and open the app in a new browser tab
|
|
27
|
+
npm run dev -- --open
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
31
|
+
|
|
32
|
+
## Building
|
|
33
|
+
|
|
34
|
+
To build your library:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm run package
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
To create a production version of your showcase app:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm run build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can preview the production build with `npm run preview`.
|
|
47
|
+
|
|
48
|
+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
49
|
+
|
|
50
|
+
## Publishing
|
|
51
|
+
|
|
52
|
+
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
|
|
53
|
+
|
|
54
|
+
To publish your library to [npm](https://www.npmjs.com):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm publish
|
|
58
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script>export let name = "";
|
|
2
|
+
export let children = [];
|
|
3
|
+
export let indent = 0;
|
|
4
|
+
export let data = {};
|
|
5
|
+
let open = true;
|
|
6
|
+
function toggleOpen() {
|
|
7
|
+
open = !open;
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<!-- <h3 style="padding-left: {indent}px" on:click={toggleOpen}>
|
|
12
|
+
{name}
|
|
13
|
+
{open ? '(open)' : '(closed)'}
|
|
14
|
+
</h3> -->
|
|
15
|
+
|
|
16
|
+
{#if open}
|
|
17
|
+
{#each Object.keys(data) as key}
|
|
18
|
+
<!-- {@html JSON.stringify(key)} -->
|
|
19
|
+
{@const child = Object.values(data[key])}
|
|
20
|
+
{@const ofType = typeof Object.values(data[key])?.[0] }
|
|
21
|
+
<div class="flex-v">
|
|
22
|
+
<div class=" border-r pad-1">
|
|
23
|
+
{key}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
{#if ofType == 'object' && Object.keys(data[key])?.[0] !='classNames' }
|
|
27
|
+
<div class="marg-l-4"><svelte:self data={data[key]} indent={indent + 24} /></div>
|
|
28
|
+
{/if}
|
|
29
|
+
|
|
30
|
+
{#if Object.keys(data[key])?.[0] =='classNames' }
|
|
31
|
+
<div class="marg-l-4"><pre>{JSON.stringify(Object.keys(data[key].classNames),undefined,' ')}</pre></div>
|
|
32
|
+
{/if}
|
|
33
|
+
{/each}
|
|
34
|
+
{/if}
|
|
35
|
+
|
|
36
|
+
<style>
|
|
37
|
+
h3 {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
user-select: none;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
name?: string | undefined;
|
|
5
|
+
children?: any[] | undefined;
|
|
6
|
+
indent?: number | undefined;
|
|
7
|
+
data?: Record<string, any> | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export type NewMenuProps = typeof __propDef.props;
|
|
15
|
+
export type NewMenuEvents = typeof __propDef.events;
|
|
16
|
+
export type NewMenuSlots = typeof __propDef.slots;
|
|
17
|
+
export default class NewMenu extends SvelteComponentTyped<NewMenuProps, NewMenuEvents, NewMenuSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{"cssfabric":{"modules":{"animation":{"_data": {"attention_props": [], "in_out_props": {"back": []}}, "_metadata": {"title": "animation", "description": "cssfabric simplest animation module"}, "_docs": {"attention_props": "", "in_out_props": ""}},
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"color":{"_data": {"gray-config": {"start": "#f4f4f4", "end": "#999", "steps": 5}, "color-types-config": ["color", "bg", "bg-themed", "border-color"], "theme": {"primary": "
|
|
5
|
-
"flex":{"_data": {"moduleName": "flex", "moduleNameShort": "flex", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 2, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}}, "_metadata": {"title": "flex", "tag": "flex", "description": "cssfabric flex system module"}, "_docs": {"attributes": {"grid": {"tag": "flex", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic flex grid system, and hey, it gets height !"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"}}}},
|
|
6
|
-
"grid":{"_data": {"moduleName": "grid", "moduleNameShort": "grid", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 4, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}, "grid-max-rows": 8, "grid-max-cols": 12}, "_metadata": {"title": "grid", "tag": "grid", "description": "cssfabric flex grid system module"}, "_docs": {"attributes": {"grid": {"tag": "grid", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic grid system"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "grid children specific classnames"}}}},
|
|
7
|
-
"menu":{"_data": {"menu_class_name": "menu", "menu_class_name_short": "ul", "orientations": {"v": "vertical", "h": "horizontal"}, "menu_item_class_name": "menu-item", "menu_item_class_name_short": "li", "menu_item_disabled_tag": "disabled", "menu_item_selected_tag": "selected", "menu_dropdown_tag": "drop", "menu_dropdown_open": "open", "menu_dropdown_close": "close"}, "_metadata": {"title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"}, "_docs": {"attributes": {"menu": {"tag": "menu", "keys": ["h", "v"]}}}},
|
|
8
|
-
"overflow":{"_data": {"overflow_props": ["overflow", "overflow-x", "overflow-y"], "overflow_values": ["visible", "hidden", "clip", "scroll", "auto"], "cssProps": {"overflow": {"visible": "visible", "hidden": "hidden", "clip": "clip", "scroll": "scroll", "_": "auto"}}}, "_metadata": {"title": "overflow", "tag": "flow", "description": "cssfabric overflow module to set overflow styles on all html elements"}, "_docs": {"attributes": {"overflow": {"tag": "flow", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowX": {"tag": "flowX", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowY": {"tag": "flowY", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}}}},
|
|
9
|
-
"scale":{"_data": {"weight-config": "1em", "unit-tag-config": {"width": "w", "height": "h"}, "grid-ratios-config": 16, "defined-step-size": 2, "defined-step-unit": "rem", "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "cssProps": {"size": {"full": "100%", "mid": "50%", "quarter": "25%", "tiers": "33%"}, "content": {"content-max": "max-content", "content-min": "min-content"}, "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64]}}, "_metadata": {"title": "scale", "tag": "scale", "description": "cssfabric scale module to set dimensions and ratios on all html elements"}, "_docs": {"attributes": {"scale": {"tag": "scale", "keys": ["w", "h"], "levels": {"_size": ["full", "mid", "quarter", "tiers"], "_content": ["content-max", "content-min"], "_defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "_grid-16": ["1-16", "2-16", "3-16", "4-16", "5-16", "6-16", "7-16", "8-16", "9-16", "10-16", "11-16", "12-16", "13-16", "14-16", "15-16", "16-16"]}}}}},
|
|
10
|
-
"table":{"_data": {"className": "table", "classNameShort": "tbl", "table_class_name": "table", "table_class_name_short": "tbl", "table-bg-color-head": "#f4f4f4", "table-bg-color-strip-main": "#ededed", "table-bg-color-strip-second": "#f5f5f5", "table-border-color-header": "#ccc", "table-border-color-main": "#ededed", "table-border-color-second": "#f5f5f5"}, "_metadata": {"title": "table", "tag": "table", "description": "cssfabric table module to set different table styles"}, "_docs": {"attributes": {"table": {"tag": "table", "classNames": {"_": ["bg-strip-2", "bg-strip-5"], "_pos": ["sticky", "layout"], "_deco": ["h-line", "v-line", "border"]}, "about": "is a table"}}}},
|
|
11
|
-
"text":{"_data": {"moduleName": "text", "moduleNameShort": "text", "title-size-declination-config": 6, "font-size-unit-config": "rem", "font-sizes-h1-rem-config": 3.1, "font-size-h-min-rem-config": 1, "text-ellipsis-tag-config": "ellipsis", "cssProps": {"textTransform": {"cap": "capitalize", "up": "uppercase", "low": "lowercase", "none": "none", "full": "full-width"}, "fontWeight": {"50": 50, "100": 100, "300": 400, "500": 500, "900": 900, "light": "lighter", "cap": "normal", "bold": "bold", "bolder": "bolder"}, "textAlign": {"l": "left", "r": "right", "center": "center", "justify": "justify"}}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#
|
|
12
|
-
"theme":{"_data": {"moduleName": "theme", "moduleNameShort": "theme", "color-default-config": {"primary": "
|
|
1
|
+
{"cssfabric":{"modules":{"animation":{"_data": {"attention_props": [], "in_out_props": {"back": []}}, "_metadata": {"title": "animation", "description": "cssfabric simplest animation module"}, "_docs": {"attention_props": "", "in_out_props": ""}},
|
|
2
|
+
"base":{"_data": {"cfg-has-dimension-strict": true, "CFG_HAS_DIMENSION_MIN": true, "CFG_HAS_DIMENSION_MAX": true, "size_step": "0.5rem", "sizes": {"tiny": 32, "small": 64, "medium": 128, "large": 256, "full": "100%"}}, "_metadata": {"title": "base", "tag": "base", "description": "cssfabric base config variables"}, "_docs": []},
|
|
3
|
+
"box":{"_data": {"unit-config": "rem", "border-unit-config": "px", "unit-size-config": 0.5, "unit-border-size-config": 1, "sizes-config": 12, "border-sizes-px-config": 3, "shadows-steps": 5, "shadows_step_multiplier": 2, "position-shorthand-config": "pos", "display-shorthand-config": "dsp", "shadow-shorthand-config": "shad", "border-shorthand-config": "border", "padding-shorthand-config": "pad", "margin-shorthand-config": "marg", "cssProps": {"borderShorthands": {"_": ["top", "bottom", "left", "right"], "t": "top", "b": "bottom", "l": "left", "r": "right", "all": ["top", "bottom", "left", "right"], "u": ["bottom", "left", "right"], "ii": ["left", "right"], "tb": ["top", "bottom"]}, "positionProps": {"abs": "absolute", "rel": "relative", "stat": "static", "fix": "fixed", "sticky": "sticky"}, "displayProps": {"block": "block", "none": "none", "inline": "inline", "block-inline": "inline-block", "flex-inline": "inline-flex", "tbl": "table", "tbl-row": "table-row", "tbl-cell": "table-cell", "tbl-column": "table-column"}}}, "_metadata": {"title": "box", "tag": "box", "description": "cssfabric box module to set heights, paddings, margins and shadows on all html elements"}, "_docs": {"attributes": {"padding": {"tag": "pad", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "padding properties for html elements"}, "margin": {"tag": "marg", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "margin properties for html elements"}, "border": {"tag": "border", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "1px", "2": "2px", "3": "3px"}, "levels": {"_": ["_", 1, 2, 3]}, "about": "border properties for html elements"}, "radius": {"tag": "radiusGuy"}, "shadow": {"tag": "shad", "values": {"2": "0.83333333331.724137931", "4": "1.66666666673.4482758621", "8": "3.33333333336.8965517241", "16": "6.666666666713.7931034483", "32": "13.333333333327.5862068966"}, "levels": {"_": [2, 4, 8, 16, 32]}, "about": "applying shadows give depth and levels to your design"}}}},
|
|
4
|
+
"color":{"_data": {"gray-config": {"start": "#f4f4f4", "end": "#999", "steps": 5}, "color-types-config": ["color", "bg", "bg-themed", "border-color"], "theme": {"primary": "rgb(32, 23, 0)", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "hsl(48, 96%, 46%)", "alert": "hsl(27, 100%, 50%)", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"}, "_docs": {"attributes": {"color": {"tag": "color", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "color for text level html elements"}, "background-color": {"tag": "bg", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "background colors"}, "background-themed": {"tag": "bg-themed", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "same as background-color, but with added contrasted color to text"}, "border-color": {"tag": "border-color", "keys": ["palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "about": "border colors are slightly darker to maximize surrounding effect"}}}},
|
|
5
|
+
"flex":{"_data": {"moduleName": "flex", "moduleNameShort": "flex", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 2, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}}, "_metadata": {"title": "flex", "tag": "flex", "description": "cssfabric flex system module"}, "_docs": {"attributes": {"grid": {"tag": "flex", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic flex grid system, and hey, it gets height !"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"}}}},
|
|
6
|
+
"grid":{"_data": {"moduleName": "grid", "moduleNameShort": "grid", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 4, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}, "grid-max-rows": 8, "grid-max-cols": 12}, "_metadata": {"title": "grid", "tag": "grid", "description": "cssfabric flex grid system module"}, "_docs": {"attributes": {"grid": {"tag": "grid", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic grid system"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "grid children specific classnames"}}}},
|
|
7
|
+
"menu":{"_data": {"menu_class_name": "menu", "menu_class_name_short": "ul", "orientations": {"v": "vertical", "h": "horizontal"}, "menu_item_class_name": "menu-item", "menu_item_class_name_short": "li", "menu_item_disabled_tag": "disabled", "menu_item_selected_tag": "selected", "menu_dropdown_tag": "drop", "menu_dropdown_open": "open", "menu_dropdown_close": "close"}, "_metadata": {"title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"}, "_docs": {"attributes": {"menu": {"tag": "menu", "keys": ["h", "v"]}}}},
|
|
8
|
+
"overflow":{"_data": {"overflow_props": ["overflow", "overflow-x", "overflow-y"], "overflow_values": ["visible", "hidden", "clip", "scroll", "auto"], "cssProps": {"overflow": {"visible": "visible", "hidden": "hidden", "clip": "clip", "scroll": "scroll", "_": "auto"}}}, "_metadata": {"title": "overflow", "tag": "flow", "description": "cssfabric overflow module to set overflow styles on all html elements"}, "_docs": {"attributes": {"overflow": {"tag": "flow", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowX": {"tag": "flowX", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowY": {"tag": "flowY", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}}}},
|
|
9
|
+
"scale":{"_data": {"weight-config": "1em", "unit-tag-config": {"width": "w", "height": "h"}, "grid-ratios-config": 16, "defined-step-size": 2, "defined-step-unit": "rem", "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "cssProps": {"size": {"full": "100%", "mid": "50%", "quarter": "25%", "tiers": "33%"}, "content": {"content-max": "max-content", "content-min": "min-content"}, "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64]}}, "_metadata": {"title": "scale", "tag": "scale", "description": "cssfabric scale module to set dimensions and ratios on all html elements"}, "_docs": {"attributes": {"scale": {"tag": "scale", "keys": ["w", "h"], "levels": {"_size": ["full", "mid", "quarter", "tiers"], "_content": ["content-max", "content-min"], "_defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "_grid-16": ["1-16", "2-16", "3-16", "4-16", "5-16", "6-16", "7-16", "8-16", "9-16", "10-16", "11-16", "12-16", "13-16", "14-16", "15-16", "16-16"]}}}}},
|
|
10
|
+
"table":{"_data": {"className": "table", "classNameShort": "tbl", "table_class_name": "table", "table_class_name_short": "tbl", "table-bg-color-head": "#f4f4f4", "table-bg-color-strip-main": "#ededed", "table-bg-color-strip-second": "#f5f5f5", "table-border-color-header": "#ccc", "table-border-color-main": "#ededed", "table-border-color-second": "#f5f5f5"}, "_metadata": {"title": "table", "tag": "table", "description": "cssfabric table module to set different table styles"}, "_docs": {"attributes": {"table": {"tag": "table", "classNames": {"_": ["bg-strip-2", "bg-strip-5"], "_pos": ["sticky", "layout"], "_deco": ["h-line", "v-line", "border"]}, "about": "is a table"}}}},
|
|
11
|
+
"text":{"_data": {"moduleName": "text", "moduleNameShort": "text", "title-size-declination-config": 6, "font-size-unit-config": "rem", "font-sizes-h1-rem-config": 3.1, "font-size-h-min-rem-config": 1, "text-ellipsis-tag-config": "ellipsis", "cssProps": {"textTransform": {"cap": "capitalize", "up": "uppercase", "low": "lowercase", "none": "none", "full": "full-width"}, "fontWeight": {"50": 50, "100": 100, "300": 400, "500": 500, "900": 900, "light": "lighter", "cap": "normal", "bold": "bold", "bolder": "bolder"}, "textAlign": {"l": "left", "r": "right", "center": "center", "justify": "justify"}}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "hsl(48, 96%, 46%)", "alert": "hsl(27, 100%, 50%)", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "text", "tag": "text", "description": "cssfabric text module to set text style on all html elements"}, "_docs": {"attributes": {"text-transform": {"tag": "text", "keys": ["cap", "up", "low", "none", "full"]}, "font-weight": {"tag": "text", "keys": [50, 100, 300, 500, 900, "light", "cap", "bold", "bolder"]}, "text-align": {"tag": "text", "keys": ["l", "r", "center", "justify"]}, "text-shadow": {"tag": "text-shad", "keys": ["palette"]}}, "classNames": {"_": {"et": "ellipsis"}}}},
|
|
12
|
+
"theme":{"_data": {"moduleName": "theme", "moduleNameShort": "theme", "color-default-config": {"primary": "rgb(32, 23, 0)", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "declinations-config": ["primary", "secondary", "tertiary"], "theme-level-config": ["light", "lighter", "dark", "darker", "complement", "invert"], "theme-properties-apply-config": ["text", "bg", "border"], "color": {"primary": "rgb(32, 23, 0)", "primary-light": "#6d4e00", "primary-lighter": "#b98500", "primary-dark": "black", "primary-darker": "black", "primary-complement": "#000920", "primary-invert": "#dfe8ff", "secondary": "#D14B02", "secondary-light": "#fd7023", "secondary-lighter": "#fea16e", "secondary-dark": "#9e3902", "secondary-darker": "#6c2701", "secondary-complement": "#0288d1", "secondary-invert": "#2eb4fd", "tertiary": "#88D102", "tertiary-light": "#b0fd23", "tertiary-lighter": "#cbfe6e", "tertiary-dark": "#679e02", "tertiary-darker": "#466c01", "tertiary-complement": "#4b02d1", "tertiary-invert": "#772efd"}}, "_metadata": {"title": "theme", "description": ""}, "_docs": {"attributes": {"theme": {"tag": "theme", "keys": ["text", "bg", "border"], "levels": {"primary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "secondary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "tertiary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"]}}}}},
|
|
13
13
|
"zindex":{"_data": {"z_groups": ["a", "z"]}, "_metadata": {"title": "zindex", "tag": "zI", "description": "cssfabric zindex module to set z-index on all html elements"}, "_docs": {"z_groups": "_"}} }}}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# Welcome to cssfabric
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Willing to bring my utility-first 2011 css framework to a more decent life !
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
This is also a learning point about gulp, webpack, packages and friends.
|
|
8
|
+
|
|
9
|
+
> yaocf !
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<br/>
|
|
13
|
+
|
|
14
|
+
## Incoming features
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<br/>
|
|
18
|
+
|
|
19
|
+
| modules | |
|
|
20
|
+
| ------- | --- |
|
|
21
|
+
| animation | cssfabric simplest animation module |
|
|
22
|
+
| base | cssfabric base config variables |
|
|
23
|
+
| box | cssfabric box module to set heights, paddings, margins and shadows on all html elements |
|
|
24
|
+
| color | cssfabric color system: its about colors |
|
|
25
|
+
| flex | cssfabric flex system module |
|
|
26
|
+
| grid | cssfabric flex grid system module |
|
|
27
|
+
| menu | cssfabric menu module to set menu style |
|
|
28
|
+
| overflow | cssfabric overflow module to set overflow styles on all html elements |
|
|
29
|
+
| scale | cssfabric scale module to set dimensions and ratios on all html elements |
|
|
30
|
+
| table | cssfabric table module to set different table styles |
|
|
31
|
+
| text | cssfabric text module to set text style on all html elements |
|
|
32
|
+
| theme | |
|
|
33
|
+
| zindex | cssfabric zindex module to set z-index on all html elements |
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<br/>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<br/>
|
|
42
|
+
|
|
43
|
+
### More details
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
#### <strong>module box</strong>
|
|
48
|
+
|
|
49
|
+
#### [padding]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
- padding properties for html elements
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: pad
|
|
56
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
57
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
58
|
+
|
|
59
|
+
#### [margin]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- margin properties for html elements
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: marg
|
|
66
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
67
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
68
|
+
|
|
69
|
+
#### [border]
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
- border properties for html elements
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border
|
|
76
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
77
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _ 1 2 3
|
|
78
|
+
|
|
79
|
+
#### [radius]
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: radiusGuy
|
|
83
|
+
|
|
84
|
+
#### [shadow]
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
- applying shadows give depth and levels to your design
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: shad
|
|
91
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: 2 4 8 16 32
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
#### <strong>module color</strong>
|
|
96
|
+
|
|
97
|
+
#### [color]
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
- color for text level html elements
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: color
|
|
104
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
105
|
+
|
|
106
|
+
#### [background-color]
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- background colors
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg
|
|
113
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
114
|
+
|
|
115
|
+
#### [background-themed]
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- same as background-color, but with added contrasted color to text
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg-themed
|
|
122
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
123
|
+
|
|
124
|
+
#### [border-color]
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- border colors are slightly darker to maximize surrounding effect
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border-color
|
|
131
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette gray
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
#### <strong>module flex</strong>
|
|
136
|
+
|
|
137
|
+
#### [grid]
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
- a classic flex grid system, and hey, it gets height !
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flex
|
|
144
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v h
|
|
145
|
+
|
|
146
|
+
#### [self]
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
- flex children specific classnames
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
|
|
153
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: start end stretch
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
#### <strong>module grid</strong>
|
|
158
|
+
|
|
159
|
+
#### [grid]
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- a classic grid system
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: grid
|
|
166
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v h
|
|
167
|
+
|
|
168
|
+
#### [self]
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- grid children specific classnames
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
|
|
175
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: start end stretch
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
#### <strong>module menu</strong>
|
|
180
|
+
|
|
181
|
+
#### [menu]
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: menu
|
|
185
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h v
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
#### <strong>module overflow</strong>
|
|
190
|
+
|
|
191
|
+
#### [overflow]
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flow
|
|
195
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
196
|
+
|
|
197
|
+
#### [overflowX]
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowX
|
|
201
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
202
|
+
|
|
203
|
+
#### [overflowY]
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
|
|
207
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
#### <strong>module scale</strong>
|
|
212
|
+
|
|
213
|
+
#### [scale]
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
|
|
217
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w h
|
|
218
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _size</span>: full mid quarter tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1 2 4 8 16 24 32 48 64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-16</span>: 1-16 2-16 3-16 4-16 5-16 6-16 7-16 8-16 9-16 10-16 11-16 12-16 13-16 14-16 15-16 16-16
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
#### <strong>module table</strong>
|
|
223
|
+
|
|
224
|
+
#### [table]
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
- is a table
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
#### <strong>module text</strong>
|
|
235
|
+
|
|
236
|
+
#### [text-transform]
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
240
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap up low none full
|
|
241
|
+
|
|
242
|
+
#### [font-weight]
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
246
|
+
|
|
247
|
+
#### [text-align]
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
251
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l r center justify
|
|
252
|
+
|
|
253
|
+
#### [text-shadow]
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text-shad
|
|
257
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
#### <strong>module theme</strong>
|
|
262
|
+
|
|
263
|
+
#### [theme]
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: theme
|
|
267
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: text bg border
|
|
268
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- primary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _ light lighter dark darker complement invert
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const colorConfig: {
|
|
2
|
+
theme: {
|
|
3
|
+
primary: string;
|
|
4
|
+
secondary: string;
|
|
5
|
+
accent: string;
|
|
6
|
+
neutral: string;
|
|
7
|
+
error: string;
|
|
8
|
+
gray: string;
|
|
9
|
+
};
|
|
10
|
+
palette: {
|
|
11
|
+
yellow: string;
|
|
12
|
+
orange: string;
|
|
13
|
+
red: string;
|
|
14
|
+
magenta: string;
|
|
15
|
+
purple: string;
|
|
16
|
+
green: string;
|
|
17
|
+
teal: string;
|
|
18
|
+
blue: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
};
|
|
21
|
+
status: {
|
|
22
|
+
discrete: string;
|
|
23
|
+
success: string;
|
|
24
|
+
info: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
alert: string;
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const colorConfig = {
|
|
2
|
+
theme: {
|
|
3
|
+
primary: '',
|
|
4
|
+
secondary: '',
|
|
5
|
+
accent: '',
|
|
6
|
+
neutral: '',
|
|
7
|
+
error: '',
|
|
8
|
+
gray: '#323130'
|
|
9
|
+
},
|
|
10
|
+
palette: {
|
|
11
|
+
yellow: '#ffb900',
|
|
12
|
+
orange: '#d83b01',
|
|
13
|
+
red: '#d13438',
|
|
14
|
+
magenta: '#b4009e',
|
|
15
|
+
purple: '#5c2d91',
|
|
16
|
+
green: '#107c10',
|
|
17
|
+
teal: '#008272',
|
|
18
|
+
blue: '#0078d4',
|
|
19
|
+
dark: '#323232'
|
|
20
|
+
},
|
|
21
|
+
status: {
|
|
22
|
+
discrete: '#ccc',
|
|
23
|
+
success: 'green',
|
|
24
|
+
info: '#FFDD57FF',
|
|
25
|
+
warning: 'hsl(48, 96%, 46%)',
|
|
26
|
+
alert: 'hsl(27, 100%, 50%)',
|
|
27
|
+
error: '#d13438'
|
|
28
|
+
}
|
|
29
|
+
};
|