@dillingerstaffing/strand 0.5.1 → 0.7.0
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/bulma/strand-bulma-compat.css +35 -31
- package/css/tokens.css +15 -1
- package/package.json +1 -1
|
@@ -1,47 +1,55 @@
|
|
|
1
|
-
/*! Strand Bulma
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*! Strand Theme for Bulma | MIT License | dillingerstaffing.com */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* A Bulma theme that applies the Strand design language.
|
|
5
|
+
*
|
|
6
|
+
* Usage (CSS only, no build step):
|
|
7
|
+
* <link rel="stylesheet" href="bulma.min.css">
|
|
8
|
+
* <link rel="stylesheet" href="@dillingerstaffing/strand/css/tokens.css">
|
|
9
|
+
* <link rel="stylesheet" href="@dillingerstaffing/strand/bulma/strand-bulma-compat.css">
|
|
10
|
+
*
|
|
11
|
+
* Or scope to specific elements:
|
|
12
|
+
* <div data-theme="strand"> ... Bulma + Strand aesthetic ... </div>
|
|
13
|
+
* <div class="theme-strand"> ... Bulma + Strand aesthetic ... </div>
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* Apply globally when loaded */
|
|
17
|
+
:root,
|
|
18
|
+
[data-theme="strand"],
|
|
19
|
+
.theme-strand {
|
|
5
20
|
/* ── Primary Colors (HSL decomposed for Bulma's palette system) ── */
|
|
6
|
-
/* Strand blue-primary is #3B8EF6 = hsl(213, 91%, 60%) */
|
|
7
21
|
--bulma-primary-h: 213deg;
|
|
8
22
|
--bulma-primary-s: 91%;
|
|
9
23
|
--bulma-primary-l: 60%;
|
|
10
24
|
|
|
11
|
-
|
|
12
|
-
--bulma-
|
|
13
|
-
--bulma-
|
|
14
|
-
--bulma-success-l: 40%;
|
|
25
|
+
--bulma-link-h: 213deg;
|
|
26
|
+
--bulma-link-s: 91%;
|
|
27
|
+
--bulma-link-l: 60%;
|
|
15
28
|
|
|
16
|
-
/* Strand blue-indicator is #93CCFD = hsl(207, 96%, 78%) */
|
|
17
29
|
--bulma-info-h: 207deg;
|
|
18
30
|
--bulma-info-s: 96%;
|
|
19
31
|
--bulma-info-l: 78%;
|
|
20
32
|
|
|
21
|
-
|
|
33
|
+
--bulma-success-h: 173deg;
|
|
34
|
+
--bulma-success-s: 80%;
|
|
35
|
+
--bulma-success-l: 40%;
|
|
36
|
+
|
|
22
37
|
--bulma-warning-h: 38deg;
|
|
23
38
|
--bulma-warning-s: 92%;
|
|
24
39
|
--bulma-warning-l: 50%;
|
|
25
40
|
|
|
26
|
-
/* Strand red-alert is #EF4444 = hsl(0, 84%, 60%) */
|
|
27
41
|
--bulma-danger-h: 0deg;
|
|
28
42
|
--bulma-danger-s: 84%;
|
|
29
43
|
--bulma-danger-l: 60%;
|
|
30
44
|
|
|
31
|
-
/* ──
|
|
32
|
-
--bulma-link-h: 213deg;
|
|
33
|
-
--bulma-link-s: 91%;
|
|
34
|
-
--bulma-link-l: 60%;
|
|
35
|
-
|
|
36
|
-
/* ── Scheme (background/surface) ── */
|
|
37
|
-
/* Strand surface-primary is #FAFCFF -- cool-shifted white */
|
|
45
|
+
/* ── Scheme (surfaces) ── */
|
|
38
46
|
--bulma-scheme-h: 220;
|
|
39
47
|
--bulma-scheme-s: 100%;
|
|
40
48
|
--bulma-scheme-main: var(--strand-surface-primary);
|
|
41
49
|
--bulma-scheme-main-bis: var(--strand-surface-recessed);
|
|
42
50
|
--bulma-scheme-main-ter: var(--strand-surface-subtle);
|
|
43
51
|
|
|
44
|
-
/* ── Text
|
|
52
|
+
/* ── Text ── */
|
|
45
53
|
--bulma-text: var(--strand-gray-600);
|
|
46
54
|
--bulma-text-strong: var(--strand-gray-800);
|
|
47
55
|
--bulma-text-weak: var(--strand-gray-500);
|
|
@@ -50,23 +58,19 @@
|
|
|
50
58
|
--bulma-family-primary: var(--strand-font-sans);
|
|
51
59
|
--bulma-family-secondary: var(--strand-font-sans);
|
|
52
60
|
--bulma-family-code: var(--strand-font-mono);
|
|
53
|
-
|
|
54
|
-
--bulma-size-
|
|
55
|
-
--bulma-size-
|
|
56
|
-
--bulma-size-
|
|
57
|
-
--bulma-size-large: 1.563rem; /* strand text-xl */
|
|
58
|
-
|
|
61
|
+
--bulma-size-small: 0.833rem;
|
|
62
|
+
--bulma-size-normal: 1rem;
|
|
63
|
+
--bulma-size-medium: 1.25rem;
|
|
64
|
+
--bulma-size-large: 1.563rem;
|
|
59
65
|
--bulma-weight-light: 300;
|
|
60
66
|
--bulma-weight-normal: 400;
|
|
61
67
|
--bulma-weight-medium: 500;
|
|
62
68
|
--bulma-weight-semibold: 600;
|
|
63
69
|
--bulma-weight-bold: 700;
|
|
64
70
|
|
|
65
|
-
/* ──
|
|
71
|
+
/* ── Borders ── */
|
|
66
72
|
--bulma-border: var(--strand-gray-200);
|
|
67
73
|
--bulma-border-weak: var(--strand-surface-subtle);
|
|
68
|
-
|
|
69
|
-
/* ── Border Radius ── */
|
|
70
74
|
--bulma-radius-small: var(--strand-radius-sm);
|
|
71
75
|
--bulma-radius: var(--strand-radius-md);
|
|
72
76
|
--bulma-radius-medium: var(--strand-radius-lg);
|
|
@@ -85,7 +89,7 @@
|
|
|
85
89
|
--bulma-focus-s: 91%;
|
|
86
90
|
--bulma-focus-l: 60%;
|
|
87
91
|
|
|
88
|
-
/* ──
|
|
92
|
+
/* ── Motion ── */
|
|
89
93
|
--bulma-duration: 250ms;
|
|
90
|
-
--bulma-easing: cubic-bezier(0.25, 1, 0.5, 1);
|
|
94
|
+
--bulma-easing: cubic-bezier(0.25, 1, 0.5, 1);
|
|
91
95
|
}
|
package/css/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Strand v0.
|
|
1
|
+
/*! Strand v0.7.0 | MIT License | dillingerstaffing.com */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
/* ═══════════════════════════════════════════
|
|
@@ -167,4 +167,18 @@
|
|
|
167
167
|
--strand-content-default: 768px;
|
|
168
168
|
--strand-content-wide: 1024px;
|
|
169
169
|
--strand-content-full: 1280px;
|
|
170
|
+
|
|
171
|
+
/* ── ACCESSIBILITY ── */
|
|
172
|
+
--strand-touch-target: 44px;
|
|
173
|
+
|
|
174
|
+
/* ── COMPONENT SIZES ── */
|
|
175
|
+
--strand-nav-height: 64px;
|
|
176
|
+
--strand-control-size: 18px;
|
|
177
|
+
|
|
178
|
+
/* ── ANIMATION: STAGGER ── */
|
|
179
|
+
--strand-stagger-delay: 80ms;
|
|
180
|
+
|
|
181
|
+
/* ── SURFACE: VIEWPORT ── */
|
|
182
|
+
--strand-viewport-grid-opacity: 0.04;
|
|
183
|
+
--strand-viewport-grid-size: 40px;
|
|
170
184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dillingerstaffing/strand",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Strand Design Language tokens - CSS custom properties and JS constants",
|
|
5
5
|
"author": "Dillinger Staffing <engineering@dillingerstaffing.com> (https://dillingerstaffing.com)",
|
|
6
6
|
"license": "MIT",
|