contain-css-svelte 0.0.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 -0
- package/dist/Card.svelte +172 -0
- package/dist/Card.svelte.d.ts +27 -0
- package/dist/controls/Button.svelte +74 -0
- package/dist/controls/Button.svelte.d.ts +28 -0
- package/dist/controls/Checkbox.svelte +111 -0
- package/dist/controls/Checkbox.svelte.d.ts +18 -0
- package/dist/controls/Input.svelte +33 -0
- package/dist/controls/Input.svelte.d.ts +22 -0
- package/dist/controls/MiniButton.svelte +78 -0
- package/dist/controls/MiniButton.svelte.d.ts +31 -0
- package/dist/controls/RadioButton.svelte +109 -0
- package/dist/controls/RadioButton.svelte.d.ts +25 -0
- package/dist/controls/Select.svelte +135 -0
- package/dist/controls/Select.svelte.d.ts +20 -0
- package/dist/controls/Slider.svelte +45 -0
- package/dist/controls/Slider.svelte.d.ts +29 -0
- package/dist/controls/TabItem.svelte +56 -0
- package/dist/controls/TabItem.svelte.d.ts +29 -0
- package/dist/cssprops.d.ts +1 -0
- package/dist/cssprops.js +189 -0
- package/dist/dropdowns/DropdownMenu.svelte +234 -0
- package/dist/dropdowns/DropdownMenu.svelte.d.ts +19 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +24 -0
- package/dist/layout/Bar.svelte +57 -0
- package/dist/layout/Bar.svelte.d.ts +27 -0
- package/dist/layout/Column.svelte +40 -0
- package/dist/layout/Column.svelte.d.ts +19 -0
- package/dist/layout/Columns.svelte +21 -0
- package/dist/layout/Columns.svelte.d.ts +27 -0
- package/dist/layout/Container.svelte +105 -0
- package/dist/layout/Container.svelte.d.ts +27 -0
- package/dist/layout/FormItem.svelte +97 -0
- package/dist/layout/FormItem.svelte.d.ts +35 -0
- package/dist/layout/GridLayout.svelte +22 -0
- package/dist/layout/GridLayout.svelte.d.ts +16 -0
- package/dist/layout/Hero.svelte +86 -0
- package/dist/layout/Hero.svelte.d.ts +23 -0
- package/dist/layout/MenuList.svelte +108 -0
- package/dist/layout/MenuList.svelte.d.ts +29 -0
- package/dist/layout/Page.svelte +189 -0
- package/dist/layout/Page.svelte.d.ts +31 -0
- package/dist/layout/ResponsiveText.svelte +99 -0
- package/dist/layout/ResponsiveText.svelte.d.ts +26 -0
- package/dist/layout/Row.svelte +39 -0
- package/dist/layout/Row.svelte.d.ts +19 -0
- package/dist/layout/Sidebar.svelte +264 -0
- package/dist/layout/Sidebar.svelte.d.ts +23 -0
- package/dist/layout/SplitPane.svelte +160 -0
- package/dist/layout/SplitPane.svelte.d.ts +21 -0
- package/dist/layout/TabBar.svelte +49 -0
- package/dist/layout/TabBar.svelte.d.ts +28 -0
- package/dist/layout/Tile.svelte +172 -0
- package/dist/layout/Tile.svelte.d.ts +27 -0
- package/dist/misc/Code.svelte +27 -0
- package/dist/misc/Code.svelte.d.ts +18 -0
- package/dist/sass/_containers.scss +117 -0
- package/dist/sass/_mixins.scss +309 -0
- package/dist/typography/TextLayout.svelte +46 -0
- package/dist/typography/TextLayout.svelte.d.ts +27 -0
- package/dist/util.d.ts +3 -0
- package/dist/util.js +13 -0
- package/dist/vars/affordances.css +26 -0
- package/dist/vars/colors.css +345 -0
- package/dist/vars/defaults.css +14 -0
- package/dist/vars/layout.css +39 -0
- package/dist/vars/themes/lightordark.css +39 -0
- package/dist/vars/themes/purple.css +18 -0
- package/dist/vars/themes/typography-airy.css +13 -0
- package/dist/vars/themes/typography-browser.css +20 -0
- package/dist/vars/themes/typography-carbon.css +20 -0
- package/dist/vars/typography.css +16 -0
- package/package.json +52 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<slot />
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<style>
|
|
6
|
+
div {
|
|
7
|
+
max-width: var(--line-width);
|
|
8
|
+
line-height: var(--line-height);
|
|
9
|
+
font-family: var(--body-font-family);
|
|
10
|
+
margin: auto;
|
|
11
|
+
font-size: var(--text-size);
|
|
12
|
+
}
|
|
13
|
+
div :global(h1),
|
|
14
|
+
div :global(h2),
|
|
15
|
+
div :global(h3),
|
|
16
|
+
div :global(h4),
|
|
17
|
+
div :global(h5),
|
|
18
|
+
div :global(h6) {
|
|
19
|
+
font-family: var(--heading-font-family);
|
|
20
|
+
margin: var(--heading-margin);
|
|
21
|
+
color: var(--heading-fg);
|
|
22
|
+
background-color: var(--heading-bg);
|
|
23
|
+
padding: var(--heading-pad);
|
|
24
|
+
}
|
|
25
|
+
div :global(h1:first-child),
|
|
26
|
+
div :global(h2:first-child),
|
|
27
|
+
div :global(h3:first-child),
|
|
28
|
+
div :global(h4:first-child),
|
|
29
|
+
div :global(h5:first-child),
|
|
30
|
+
div :global(h6:first-child),
|
|
31
|
+
div :global(p:first-of-type),
|
|
32
|
+
div :global(h1 + p),
|
|
33
|
+
div :global(h2 + p),
|
|
34
|
+
div :global(h3 + p),
|
|
35
|
+
div :global(h4 + p),
|
|
36
|
+
div :global(h5 + p),
|
|
37
|
+
div :global(h6 + p) {
|
|
38
|
+
margin: var(--first-heading-margin);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
div :global(code) {
|
|
42
|
+
font-family: var(--code-font-family);
|
|
43
|
+
font-size: var(--code-font-size);
|
|
44
|
+
text-wrap: nowrap;
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TextLayoutProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TextLayoutEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TextLayoutSlots */
|
|
4
|
+
export default class TextLayout extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TextLayoutProps = typeof __propDef.props;
|
|
13
|
+
export type TextLayoutEvents = typeof __propDef.events;
|
|
14
|
+
export type TextLayoutSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
package/dist/util.d.ts
ADDED
package/dist/util.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function injectVars(props, prefix, varList) {
|
|
2
|
+
let cssVars = "";
|
|
3
|
+
varList.forEach((v) => {
|
|
4
|
+
if (props[v]) {
|
|
5
|
+
const cssVarName = toKebabCase(v);
|
|
6
|
+
cssVars += `--${prefix}-${cssVarName}: ${props[v]};`;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
return cssVars;
|
|
10
|
+
}
|
|
11
|
+
function toKebabCase(str) {
|
|
12
|
+
return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--hover-filter: brightness(1.2)
|
|
3
|
+
drop-shadow(var(--space) var(--space) var(--shadow-color));
|
|
4
|
+
--active-filter: brightness(0.9);
|
|
5
|
+
/* --hover-transform: translate(var(--space), var(--space)); */
|
|
6
|
+
/* --button-hover-filter: var(--hover-filter); */
|
|
7
|
+
--menu-hover-filter: var(--hover-filter);
|
|
8
|
+
--menu-hover-transform: var(--hover-transform);
|
|
9
|
+
/* --button-hover-transform: var(var(--button-hover-transform));
|
|
10
|
+
--button-hover-filter: var(var(--button-hover-filter)); */
|
|
11
|
+
--transition: 300ms;
|
|
12
|
+
--menu-transition: var(--transition);
|
|
13
|
+
--button-transition: var(--transition);
|
|
14
|
+
--sidebar-transition: var(--transition);
|
|
15
|
+
--checkbox-hover-filter: var(--hover-filter);
|
|
16
|
+
--checkbox-hover-transform: rotateY(-5deg);
|
|
17
|
+
--checkbox-active-filter: var(--active-filter);
|
|
18
|
+
--checkbox-active-transform: rotateY(5deg);
|
|
19
|
+
--checkbox-transition: 400ms;
|
|
20
|
+
--checked-weight: var(--bold);
|
|
21
|
+
--grab-bar-hover-bg: #fff2;
|
|
22
|
+
--grab-bar-active-bg: #fff4;
|
|
23
|
+
--grab-bar-hover-filter: drop-shadow(0 0 2px #fff);
|
|
24
|
+
--grab-bar-active-filter: drop-shdaow(0 0 4px #fff);
|
|
25
|
+
--greyed-out-filter: blur(2px) grayscale(0.5);
|
|
26
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--white: #fff;
|
|
3
|
+
--black: #222;
|
|
4
|
+
--primary-bg: var(--material-color-light-blue-400);
|
|
5
|
+
--primary-fg: var(--white);
|
|
6
|
+
--secondary-bg: var(--material-color-amber-100);
|
|
7
|
+
--secondary-fg: var(--material-color-grey-800);
|
|
8
|
+
--inactive-bg: var(--material-color-grey-400);
|
|
9
|
+
--inactive-fg: var(--material-color-grey-900);
|
|
10
|
+
--bg: #1a1a1a;
|
|
11
|
+
--fg: #fffcfe;
|
|
12
|
+
--stripe-fg: #eaeaea;
|
|
13
|
+
--stripe-bg: #3a3a3a;
|
|
14
|
+
--shadow-color: #eeeeee0f;
|
|
15
|
+
--border-color: #e9e9e9;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
background-color: var(--bg);
|
|
20
|
+
color: var(--fg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Color definitions */
|
|
24
|
+
|
|
25
|
+
:root {
|
|
26
|
+
--material-color-red: #f44336;
|
|
27
|
+
--material-color-red-50: #ffebee;
|
|
28
|
+
--material-color-red-100: #ffcdd2;
|
|
29
|
+
--material-color-red-200: #ef9a9a;
|
|
30
|
+
--material-color-red-300: #e57373;
|
|
31
|
+
--material-color-red-400: #ef5350;
|
|
32
|
+
--material-color-red-500: var(--material-color-red);
|
|
33
|
+
--material-color-red-600: #e53935;
|
|
34
|
+
--material-color-red-700: #d32f2f;
|
|
35
|
+
--material-color-red-800: #c62828;
|
|
36
|
+
--material-color-red-900: #b71c1c;
|
|
37
|
+
--material-color-red-a100: #ff8a80;
|
|
38
|
+
--material-color-red-a200: #ff5252;
|
|
39
|
+
--material-color-red-a400: #ff1744;
|
|
40
|
+
--material-color-red-a700: #d50000;
|
|
41
|
+
|
|
42
|
+
--material-color-pink: #e91e63;
|
|
43
|
+
--material-color-pink-50: #fce4ec;
|
|
44
|
+
--material-color-pink-100: #f8bbd0;
|
|
45
|
+
--material-color-pink-200: #f48fb1;
|
|
46
|
+
--material-color-pink-300: #f06292;
|
|
47
|
+
--material-color-pink-400: #ec407a;
|
|
48
|
+
--material-color-pink-500: var(--material-color-pink);
|
|
49
|
+
--material-color-pink-600: #d81b60;
|
|
50
|
+
--material-color-pink-700: #c2185b;
|
|
51
|
+
--material-color-pink-800: #ad1457;
|
|
52
|
+
--material-color-pink-900: #880e4f;
|
|
53
|
+
--material-color-pink-a100: #ff80ab;
|
|
54
|
+
--material-color-pink-a200: #ff4081;
|
|
55
|
+
--material-color-pink-a400: #f50057;
|
|
56
|
+
--material-color-pink-a700: #c51162;
|
|
57
|
+
|
|
58
|
+
--material-color-purple: #9c27b0;
|
|
59
|
+
--material-color-purple-50: #f3e5f5;
|
|
60
|
+
--material-color-purple-100: #e1bee7;
|
|
61
|
+
--material-color-purple-200: #ce93d8;
|
|
62
|
+
--material-color-purple-300: #ba68c8;
|
|
63
|
+
--material-color-purple-400: #ab47bc;
|
|
64
|
+
--material-color-purple-500: var(--material-color-purple);
|
|
65
|
+
--material-color-purple-600: #8e24aa;
|
|
66
|
+
--material-color-purple-700: #7b1fa2;
|
|
67
|
+
--material-color-purple-800: #6a1b9a;
|
|
68
|
+
--material-color-purple-900: #4a148c;
|
|
69
|
+
--material-color-purple-a100: #ea80fc;
|
|
70
|
+
--material-color-purple-a200: #e040fb;
|
|
71
|
+
--material-color-purple-a400: #d500f9;
|
|
72
|
+
--material-color-purple-a700: #a0f;
|
|
73
|
+
|
|
74
|
+
--material-color-deep-purple: #673ab7;
|
|
75
|
+
--material-color-deep-purple-50: #ede7f6;
|
|
76
|
+
--material-color-deep-purple-100: #d1c4e9;
|
|
77
|
+
--material-color-deep-purple-200: #b39ddb;
|
|
78
|
+
--material-color-deep-purple-300: #9575cd;
|
|
79
|
+
--material-color-deep-purple-400: #7e57c2;
|
|
80
|
+
--material-color-deep-purple-500: var(--material-color-deep-purple);
|
|
81
|
+
--material-color-deep-purple-600: #5e35b1;
|
|
82
|
+
--material-color-deep-purple-700: #512da8;
|
|
83
|
+
--material-color-deep-purple-800: #4527a0;
|
|
84
|
+
--material-color-deep-purple-900: #311b92;
|
|
85
|
+
--material-color-deep-purple-a100: #b388ff;
|
|
86
|
+
--material-color-deep-purple-a200: #7c4dff;
|
|
87
|
+
--material-color-deep-purple-a400: #651fff;
|
|
88
|
+
--material-color-deep-purple-a700: #6200ea;
|
|
89
|
+
|
|
90
|
+
--material-color-indigo: #3f51b5;
|
|
91
|
+
--material-color-indigo-50: #e8eaf6;
|
|
92
|
+
--material-color-indigo-100: #c5cae9;
|
|
93
|
+
--material-color-indigo-200: #9fa8da;
|
|
94
|
+
--material-color-indigo-300: #7986cb;
|
|
95
|
+
--material-color-indigo-400: #5c6bc0;
|
|
96
|
+
--material-color-indigo-500: var(--material-color-indigo);
|
|
97
|
+
--material-color-indigo-600: #3949ab;
|
|
98
|
+
--material-color-indigo-700: #303f9f;
|
|
99
|
+
--material-color-indigo-800: #283593;
|
|
100
|
+
--material-color-indigo-900: #1a237e;
|
|
101
|
+
--material-color-indigo-a100: #8c9eff;
|
|
102
|
+
--material-color-indigo-a200: #536dfe;
|
|
103
|
+
--material-color-indigo-a400: #3d5afe;
|
|
104
|
+
--material-color-indigo-a700: #304ffe;
|
|
105
|
+
|
|
106
|
+
--material-color-blue: #2196f3;
|
|
107
|
+
--material-color-blue-50: #e3f2fd;
|
|
108
|
+
--material-color-blue-100: #bbdefb;
|
|
109
|
+
--material-color-blue-200: #90caf9;
|
|
110
|
+
--material-color-blue-300: #64b5f6;
|
|
111
|
+
--material-color-blue-400: #42a5f5;
|
|
112
|
+
--material-color-blue-500: var(--material-color-blue);
|
|
113
|
+
--material-color-blue-600: #1e88e5;
|
|
114
|
+
--material-color-blue-700: #1976d2;
|
|
115
|
+
--material-color-blue-800: #1565c0;
|
|
116
|
+
--material-color-blue-900: #0d47a1;
|
|
117
|
+
--material-color-blue-a100: #82b1ff;
|
|
118
|
+
--material-color-blue-a200: #448aff;
|
|
119
|
+
--material-color-blue-a400: #2979ff;
|
|
120
|
+
--material-color-blue-a700: #2962ff;
|
|
121
|
+
|
|
122
|
+
--material-color-light-blue: #03a9f4;
|
|
123
|
+
--material-color-light-blue-50: #e1f5fe;
|
|
124
|
+
--material-color-light-blue-100: #b3e5fc;
|
|
125
|
+
--material-color-light-blue-200: #81d4fa;
|
|
126
|
+
--material-color-light-blue-300: #4fc3f7;
|
|
127
|
+
--material-color-light-blue-400: #29b6f6;
|
|
128
|
+
--material-color-light-blue-500: var(--material-color-light-blue);
|
|
129
|
+
--material-color-light-blue-600: #039be5;
|
|
130
|
+
--material-color-light-blue-700: #0288d1;
|
|
131
|
+
--material-color-light-blue-800: #0277bd;
|
|
132
|
+
--material-color-light-blue-900: #01579b;
|
|
133
|
+
--material-color-light-blue-a100: #80d8ff;
|
|
134
|
+
--material-color-light-blue-a200: #40c4ff;
|
|
135
|
+
--material-color-light-blue-a400: #00b0ff;
|
|
136
|
+
--material-color-light-blue-a700: #0091ea;
|
|
137
|
+
|
|
138
|
+
--material-color-cyan: #00bcd4;
|
|
139
|
+
--material-color-cyan-50: #e0f7fa;
|
|
140
|
+
--material-color-cyan-100: #b2ebf2;
|
|
141
|
+
--material-color-cyan-200: #80deea;
|
|
142
|
+
--material-color-cyan-300: #4dd0e1;
|
|
143
|
+
--material-color-cyan-400: #26c6da;
|
|
144
|
+
--material-color-cyan-500: var(--material-color-cyan);
|
|
145
|
+
--material-color-cyan-600: #00acc1;
|
|
146
|
+
--material-color-cyan-700: #0097a7;
|
|
147
|
+
--material-color-cyan-800: #00838f;
|
|
148
|
+
--material-color-cyan-900: #006064;
|
|
149
|
+
--material-color-cyan-a100: #84ffff;
|
|
150
|
+
--material-color-cyan-a200: #18ffff;
|
|
151
|
+
--material-color-cyan-a400: #00e5ff;
|
|
152
|
+
--material-color-cyan-a700: #00b8d4;
|
|
153
|
+
|
|
154
|
+
--material-color-teal: #009688;
|
|
155
|
+
--material-color-teal-50: #e0f2f1;
|
|
156
|
+
--material-color-teal-100: #b2dfdb;
|
|
157
|
+
--material-color-teal-200: #80cbc4;
|
|
158
|
+
--material-color-teal-300: #4db6ac;
|
|
159
|
+
--material-color-teal-400: #26a69a;
|
|
160
|
+
--material-color-teal-500: var(--material-color-teal);
|
|
161
|
+
--material-color-teal-600: #00897b;
|
|
162
|
+
--material-color-teal-700: #00796b;
|
|
163
|
+
--material-color-teal-800: #00695c;
|
|
164
|
+
--material-color-teal-900: #004d40;
|
|
165
|
+
--material-color-teal-a100: #a7ffeb;
|
|
166
|
+
--material-color-teal-a200: #64ffda;
|
|
167
|
+
--material-color-teal-a400: #1de9b6;
|
|
168
|
+
--material-color-teal-a700: #00bfa5;
|
|
169
|
+
|
|
170
|
+
--material-color-green: #4caf50;
|
|
171
|
+
--material-color-green-50: #e8f5e9;
|
|
172
|
+
--material-color-green-100: #c8e6c9;
|
|
173
|
+
--material-color-green-200: #a5d6a7;
|
|
174
|
+
--material-color-green-300: #81c784;
|
|
175
|
+
--material-color-green-400: #66bb6a;
|
|
176
|
+
--material-color-green-500: var(--material-color-green);
|
|
177
|
+
--material-color-green-600: #43a047;
|
|
178
|
+
--material-color-green-700: #388e3c;
|
|
179
|
+
--material-color-green-800: #2e7d32;
|
|
180
|
+
--material-color-green-900: #1b5e20;
|
|
181
|
+
--material-color-green-a100: #b9f6ca;
|
|
182
|
+
--material-color-green-a200: #69f0ae;
|
|
183
|
+
--material-color-green-a400: #00e676;
|
|
184
|
+
--material-color-green-a700: #00c853;
|
|
185
|
+
|
|
186
|
+
--material-color-light-green: #8bc34a;
|
|
187
|
+
--material-color-light-green-50: #f1f8e9;
|
|
188
|
+
--material-color-light-green-100: #dcedc8;
|
|
189
|
+
--material-color-light-green-200: #c5e1a5;
|
|
190
|
+
--material-color-light-green-300: #aed581;
|
|
191
|
+
--material-color-light-green-400: #9ccc65;
|
|
192
|
+
--material-color-light-green-500: var(--material-color-light-green);
|
|
193
|
+
--material-color-light-green-600: #7cb342;
|
|
194
|
+
--material-color-light-green-700: #689f38;
|
|
195
|
+
--material-color-light-green-800: #558b2f;
|
|
196
|
+
--material-color-light-green-900: #33691e;
|
|
197
|
+
--material-color-light-green-a100: #ccff90;
|
|
198
|
+
--material-color-light-green-a200: #b2ff59;
|
|
199
|
+
--material-color-light-green-a400: #76ff03;
|
|
200
|
+
--material-color-light-green-a700: #64dd17;
|
|
201
|
+
|
|
202
|
+
--material-color-lime: #cddc39;
|
|
203
|
+
--material-color-lime-50: #f9fbe7;
|
|
204
|
+
--material-color-lime-100: #f0f4c3;
|
|
205
|
+
--material-color-lime-200: #e6ee9c;
|
|
206
|
+
--material-color-lime-300: #dce775;
|
|
207
|
+
--material-color-lime-400: #d4e157;
|
|
208
|
+
--material-color-lime-500: var(--material-color-lime);
|
|
209
|
+
--material-color-lime-600: #c0ca33;
|
|
210
|
+
--material-color-lime-700: #afb42b;
|
|
211
|
+
--material-color-lime-800: #9e9d24;
|
|
212
|
+
--material-color-lime-900: #827717;
|
|
213
|
+
--material-color-lime-a100: #f4ff81;
|
|
214
|
+
--material-color-lime-a200: #eeff41;
|
|
215
|
+
--material-color-lime-a400: #c6ff00;
|
|
216
|
+
--material-color-lime-a700: #aeea00;
|
|
217
|
+
|
|
218
|
+
--material-color-yellow: #ffeb3b;
|
|
219
|
+
--material-color-yellow-50: #fffde7;
|
|
220
|
+
--material-color-yellow-100: #fff9c4;
|
|
221
|
+
--material-color-yellow-200: #fff59d;
|
|
222
|
+
--material-color-yellow-300: #fff176;
|
|
223
|
+
--material-color-yellow-400: #ffee58;
|
|
224
|
+
--material-color-yellow-500: var(--material-color-yellow);
|
|
225
|
+
--material-color-yellow-600: #fdd835;
|
|
226
|
+
--material-color-yellow-700: #fbc02d;
|
|
227
|
+
--material-color-yellow-800: #f9a825;
|
|
228
|
+
--material-color-yellow-900: #f57f17;
|
|
229
|
+
--material-color-yellow-a100: #ffff8d;
|
|
230
|
+
--material-color-yellow-a200: #ff0;
|
|
231
|
+
--material-color-yellow-a400: #ffea00;
|
|
232
|
+
--material-color-yellow-a700: #ffd600;
|
|
233
|
+
|
|
234
|
+
--material-color-amber: #ffc107;
|
|
235
|
+
--material-color-amber-50: #fff8e1;
|
|
236
|
+
--material-color-amber-100: #ffecb3;
|
|
237
|
+
--material-color-amber-200: #ffe082;
|
|
238
|
+
--material-color-amber-300: #ffd54f;
|
|
239
|
+
--material-color-amber-400: #ffca28;
|
|
240
|
+
--material-color-amber-500: var(--material-color-amber);
|
|
241
|
+
--material-color-amber-600: #ffb300;
|
|
242
|
+
--material-color-amber-700: #ffa000;
|
|
243
|
+
--material-color-amber-800: #ff8f00;
|
|
244
|
+
--material-color-amber-900: #ff6f00;
|
|
245
|
+
--material-color-amber-a100: #ffe57f;
|
|
246
|
+
--material-color-amber-a200: #ffd740;
|
|
247
|
+
--material-color-amber-a400: #ffc400;
|
|
248
|
+
--material-color-amber-a700: #ffab00;
|
|
249
|
+
|
|
250
|
+
--material-color-orange: #ff9800;
|
|
251
|
+
--material-color-orange-50: #fff3e0;
|
|
252
|
+
--material-color-orange-100: #ffe0b2;
|
|
253
|
+
--material-color-orange-200: #ffcc80;
|
|
254
|
+
--material-color-orange-300: #ffb74d;
|
|
255
|
+
--material-color-orange-400: #ffa726;
|
|
256
|
+
--material-color-orange-500: var(--material-color-orange);
|
|
257
|
+
--material-color-orange-600: #fb8c00;
|
|
258
|
+
--material-color-orange-700: #f57c00;
|
|
259
|
+
--material-color-orange-800: #ef6c00;
|
|
260
|
+
--material-color-orange-900: #e65100;
|
|
261
|
+
--material-color-orange-a100: #ffd180;
|
|
262
|
+
--material-color-orange-a200: #ffab40;
|
|
263
|
+
--material-color-orange-a400: #ff9100;
|
|
264
|
+
--material-color-orange-a700: #ff6d00;
|
|
265
|
+
|
|
266
|
+
--material-color-deep-orange: #ff5722;
|
|
267
|
+
--material-color-deep-orange-50: #fbe9e7;
|
|
268
|
+
--material-color-deep-orange-100: #ffccbc;
|
|
269
|
+
--material-color-deep-orange-200: #ffab91;
|
|
270
|
+
--material-color-deep-orange-300: #ff8a65;
|
|
271
|
+
--material-color-deep-orange-400: #ff7043;
|
|
272
|
+
--material-color-deep-orange-500: var(--material-color-deep-orange);
|
|
273
|
+
--material-color-deep-orange-600: #f4511e;
|
|
274
|
+
--material-color-deep-orange-700: #e64a19;
|
|
275
|
+
--material-color-deep-orange-800: #d84315;
|
|
276
|
+
--material-color-deep-orange-900: #bf360c;
|
|
277
|
+
--material-color-deep-orange-a100: #ff9e80;
|
|
278
|
+
--material-color-deep-orange-a200: #ff6e40;
|
|
279
|
+
--material-color-deep-orange-a400: #ff3d00;
|
|
280
|
+
--material-color-deep-orange-a700: #dd2c00;
|
|
281
|
+
|
|
282
|
+
--material-color-brown: #795548;
|
|
283
|
+
--material-color-brown-50: #efebe9;
|
|
284
|
+
--material-color-brown-100: #d7ccc8;
|
|
285
|
+
--material-color-brown-200: #bcaaa4;
|
|
286
|
+
--material-color-brown-300: #a1887f;
|
|
287
|
+
--material-color-brown-400: #8d6e63;
|
|
288
|
+
--material-color-brown-500: var(--material-color-brown);
|
|
289
|
+
--material-color-brown-600: #6d4c41;
|
|
290
|
+
--material-color-brown-700: #5d4037;
|
|
291
|
+
--material-color-brown-800: #4e342e;
|
|
292
|
+
--material-color-brown-900: #3e2723;
|
|
293
|
+
|
|
294
|
+
--material-color-grey: #9e9e9e;
|
|
295
|
+
--material-color-grey-50: #fafafa;
|
|
296
|
+
--material-color-grey-100: #f5f5f5;
|
|
297
|
+
--material-color-grey-200: #eee;
|
|
298
|
+
--material-color-grey-300: #e0e0e0;
|
|
299
|
+
--material-color-grey-400: #bdbdbd;
|
|
300
|
+
--material-color-grey-500: var(--material-color-grey);
|
|
301
|
+
--material-color-grey-600: #757575;
|
|
302
|
+
--material-color-grey-700: #616161;
|
|
303
|
+
--material-color-grey-800: #424242;
|
|
304
|
+
--material-color-grey-900: #212121;
|
|
305
|
+
|
|
306
|
+
--material-color-blue-grey: #607d8b;
|
|
307
|
+
--material-color-blue-grey-50: #eceff1;
|
|
308
|
+
--material-color-blue-grey-100: #cfd8dc;
|
|
309
|
+
--material-color-blue-grey-200: #b0bec5;
|
|
310
|
+
--material-color-blue-grey-300: #90a4ae;
|
|
311
|
+
--material-color-blue-grey-400: #78909c;
|
|
312
|
+
--material-color-blue-grey-500: var(--material-color-blue-grey);
|
|
313
|
+
--material-color-blue-grey-600: #546e7a;
|
|
314
|
+
--material-color-blue-grey-700: #455a64;
|
|
315
|
+
--material-color-blue-grey-800: #37474f;
|
|
316
|
+
--material-color-blue-grey-900: #263238;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:root {
|
|
320
|
+
--material-color-red-light: var(--material-color-red-100);
|
|
321
|
+
--material-color-pink-light: var(--material-color-pink-100);
|
|
322
|
+
--material-color-purple-light: var(--material-color-purple-100);
|
|
323
|
+
--material-color-deep-purple-light: var(--material-color-deep-purple-100);
|
|
324
|
+
--material-color-indigo-light: var(--material-color-indigo-100);
|
|
325
|
+
--material-color-cyan-light: var(--material-color-cyan-100);
|
|
326
|
+
--material-color-blue-light: var(--material-color-blue-100);
|
|
327
|
+
--material-color-teal-light: var(--material-color-teal-100);
|
|
328
|
+
--material-color-light-blue-light: var(--material-color-light-blue-100);
|
|
329
|
+
--material-color-light-green-light: var(--material-color-green-100);
|
|
330
|
+
--material-color-green-light: var(--material-color-green-100);
|
|
331
|
+
--material-color-lime-light: var(--material-color-lime-100);
|
|
332
|
+
--material-color-yellow-light: var(--material-color-yellow-100);
|
|
333
|
+
--material-color-amber-light: var(--material-color-amber-100);
|
|
334
|
+
--material-color-orange-light: var(--material-color-orange-100);
|
|
335
|
+
--material-color-deep-orange-light: var(--material-color-deep-orange-100);
|
|
336
|
+
--material-color-brown-light: var(--material-color-brown-100);
|
|
337
|
+
--material-color-grey-light: var(--material-color-grey-100);
|
|
338
|
+
--material-color-blue-grey-light: var(--material-color-blue-grey-100);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:root {
|
|
342
|
+
/* shorthands... */
|
|
343
|
+
--red: var(--material-color-red);
|
|
344
|
+
--deep-orange: var(var(--material-color-deep-orange));
|
|
345
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import url("./typography.css");
|
|
2
|
+
@import url("./colors.css");
|
|
3
|
+
@import url("./affordances.css");
|
|
4
|
+
@import url("./layout.css");
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
font-family: var(--font-family);
|
|
8
|
+
font-size: var(--font-size);
|
|
9
|
+
}
|
|
10
|
+
body {
|
|
11
|
+
font-size: var(--font-size);
|
|
12
|
+
font-family: var(--font-family);
|
|
13
|
+
scroll-behavior: smooth;
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* Basic spacing */
|
|
8
|
+
--space: 2px;
|
|
9
|
+
--space-md: calc(var(--space) * 2);
|
|
10
|
+
--space-lg: calc(var(--space-md) * 2);
|
|
11
|
+
--space-xl: calc(var(--space-xl) * 2);
|
|
12
|
+
--padding: calc(var(--space) * 4);
|
|
13
|
+
--gap: calc(var(--padding) * 2);
|
|
14
|
+
--column-gap: var(--gap);
|
|
15
|
+
--row-gap: var(--gap);
|
|
16
|
+
--grab-bar-width: var(--padding);
|
|
17
|
+
--border-radius: 8px;
|
|
18
|
+
--border-style: solid;
|
|
19
|
+
--border-width: 1px;
|
|
20
|
+
/* Simple icon sizes and such */
|
|
21
|
+
--icon-size: 32px;
|
|
22
|
+
/* Cards */
|
|
23
|
+
--card-width: 420px;
|
|
24
|
+
--card-width-small: 250px;
|
|
25
|
+
--card-width-large: 600px;
|
|
26
|
+
--card-height: 300px;
|
|
27
|
+
--card-height-small: 150px;
|
|
28
|
+
--card-height-large: 450px;
|
|
29
|
+
--min-card-height: 200px;
|
|
30
|
+
/* header and footer heights in em so they scale with
|
|
31
|
+
typography changes that happen in media queries */
|
|
32
|
+
--card-header-height: 2em;
|
|
33
|
+
--card-footer-height: 1.5em;
|
|
34
|
+
--card-footer-border: 1px solid #1113;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root {
|
|
38
|
+
--sidebar-width: 256px;
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* light mode */
|
|
2
|
+
@media (prefers-color-scheme: light) {
|
|
3
|
+
:root {
|
|
4
|
+
--fg: var(--material-color-grey-800);
|
|
5
|
+
--bg: var(--material-color-grey-300);
|
|
6
|
+
--container-bg: var(--material-color-grey-100);
|
|
7
|
+
--container-fg: var(--material-color-grey-800);
|
|
8
|
+
--sidebar-bg: var(--material-color-grey-100);
|
|
9
|
+
--sidebar-fg: var(--material-color-grey-900);
|
|
10
|
+
--menu-bg: var(--material-color-grey-100);
|
|
11
|
+
--menu-fg: var(--material-color-grey-900);
|
|
12
|
+
--primary-bg: var(--material-color-blue-500);
|
|
13
|
+
--primary-fg: var(--material-color-grey-100);
|
|
14
|
+
--secondary-bg: var(--material-color-grey-400);
|
|
15
|
+
--secondary-fg: var(--material-color-grey-900);
|
|
16
|
+
--stripe-bg: var(--material-color-grey-900);
|
|
17
|
+
--stripe-fg: var(--material-color-grey-100);
|
|
18
|
+
--control-bg: var(--material-color-grey-300);
|
|
19
|
+
--control-fg: var(--material-color-grey-900);
|
|
20
|
+
--border-color: var(--material-color-grey-400);
|
|
21
|
+
--input-bg: #fefefe;
|
|
22
|
+
--input-fg: var(--material-color-grey-900);
|
|
23
|
+
--hover-filter: brightness(0.9) contrast(1.5);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/* dark mode */
|
|
27
|
+
@media (prefers-color-scheme: dark) {
|
|
28
|
+
:root {
|
|
29
|
+
--fg: var(--material-color-grey-900);
|
|
30
|
+
--bg: var(--material-color-grey-100);
|
|
31
|
+
--container-bg: var(--material-color-grey-900);
|
|
32
|
+
--container-fg: var(--material-color-grey-100);
|
|
33
|
+
--primary-bg: var(--material-color-light-blue-500);
|
|
34
|
+
--primary-fg: var(--material-color-grey-100);
|
|
35
|
+
--secondary-bg: var(--material-color-grey-300);
|
|
36
|
+
--secondary-fg: var(--material-color-grey-900);
|
|
37
|
+
--hover-filter: brightness(1.1) contrast(1.5);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--fg: var(--material-color-grey-900);
|
|
3
|
+
--bg: var(--material-color-purple-100);
|
|
4
|
+
--container-bg: #ffefff;
|
|
5
|
+
--menu-item-bg: #ffefff;
|
|
6
|
+
--hero-bg: var(--material-color-purple-500);
|
|
7
|
+
--hero-fg: var(--material-color-grey-100);
|
|
8
|
+
--primary-bg: var(--material-color-purple-500);
|
|
9
|
+
--primary-fg: var(--material-color-grey-100);
|
|
10
|
+
--bar-bg: var(--material-color-purple-800);
|
|
11
|
+
--bar-fg: #ffefff;
|
|
12
|
+
--secondary-bg: var(--material-color-purple-200);
|
|
13
|
+
--secondary-fg: var(--material-color-purple-800);
|
|
14
|
+
--shadow-color: #7773;
|
|
15
|
+
--border-color: var(--material-color-purple-200);
|
|
16
|
+
--tab-bar-bg: #ffefff;
|
|
17
|
+
--tab-bar-fg: var(--material-color-grey-900);
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&Inconsolata:wght@300&display=swap");
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--font-family: "Nunito", sans-serif;
|
|
5
|
+
--line-height: 1.8;
|
|
6
|
+
--heading-line-height: 1;
|
|
7
|
+
--bold: 400;
|
|
8
|
+
--line-width: 30em;
|
|
9
|
+
--normal: 200;
|
|
10
|
+
--ui-font-weight: 400;
|
|
11
|
+
--code-font-size: 1em;
|
|
12
|
+
--code-font-family: Inconsolata, monospace;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-size: 16px;
|
|
3
|
+
--font-size-small: 12px;
|
|
4
|
+
--heading-size: 1.5rem;
|
|
5
|
+
--text-size: 1.2rem;
|
|
6
|
+
--font-family: sans-serif;
|
|
7
|
+
--heading-font-family: var(--font-family);
|
|
8
|
+
--body-font-family: serif;
|
|
9
|
+
--ui-font-family: var(--font-family);
|
|
10
|
+
--code-font-family: monospace;
|
|
11
|
+
--code-font-size: 0.9em;
|
|
12
|
+
/* Basic typography... */
|
|
13
|
+
--line-height: 1.4;
|
|
14
|
+
--line-width: 30rem;
|
|
15
|
+
--bold: bold;
|
|
16
|
+
--heading-margin: 0.5em 0;
|
|
17
|
+
--first-heading-margin: 0;
|
|
18
|
+
--heading-bg: transparent;
|
|
19
|
+
--heading-fg: var(--primary-bg);
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inconsolata:wght@300&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap");
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--font-family: "IBM Plex Sans", sans-serif;
|
|
5
|
+
--aa-heading-font-family: "IBM Plex Serif", serif;
|
|
6
|
+
--body-font-family: "IBM Plex Sans", sans-serif;
|
|
7
|
+
--ui-font-family: "IBM Plex Sans", sans-serif;
|
|
8
|
+
--code-font-family: "IBM Plex Mono", monospace;
|
|
9
|
+
--code-font-size: 0.9em;
|
|
10
|
+
--font-size: 16px;
|
|
11
|
+
/* Basic typography... */
|
|
12
|
+
--line-height: 1.6;
|
|
13
|
+
--heading-line-height: 1.1;
|
|
14
|
+
--line-width: 30rem;
|
|
15
|
+
--bold: 500;
|
|
16
|
+
--heading-margin: 0.5em 0;
|
|
17
|
+
--first-heading-margin: 0;
|
|
18
|
+
--heading-bg: transparent;
|
|
19
|
+
--heading-fg: var(--primary-bg);
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-size: 16px;
|
|
3
|
+
--font-size-small: 12px;
|
|
4
|
+
--heading-size: 1.5rem;
|
|
5
|
+
--text-size: 1.2rem;
|
|
6
|
+
--font-family: sans-serif;
|
|
7
|
+
--code-font-size: 0.9em;
|
|
8
|
+
/* Basic typography... */
|
|
9
|
+
--line-height: 1.4;
|
|
10
|
+
--line-width: 30rem;
|
|
11
|
+
--bold: bold;
|
|
12
|
+
--heading-margin: 0.5em 0;
|
|
13
|
+
--first-heading-margin: 0;
|
|
14
|
+
--heading-bg: transparent;
|
|
15
|
+
--heading-fg: var(--primary-bg);
|
|
16
|
+
}
|