@stnd/styles 0.5.2 → 0.5.4
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/CHANGELOG.md +12 -0
- package/README.md +8 -5
- package/TOKENS.md +10 -6
- package/_standard-00-reset.scss +18 -0
- package/_standard-00-variables.scss +15 -8
- package/_standard-01-token.scss +273 -10
- package/_standard-02-color.scss +188 -86
- package/_standard-03-typography.scss +78 -116
- package/_standard-04-grid.scss +12 -8
- package/_standard-05-rhythm.scss +24 -2
- package/_standard-06-prose.scss +14 -32
- package/_standard-07-base.scss +38 -48
- package/_standard-08-media.scss +37 -32
- package/_standard-09-lists.scss +69 -25
- package/_standard-10-tables.scss +45 -4
- package/_standard-11-forms.scss +31 -2
- package/_standard-12-code.scss +84 -3
- package/_standard-13-components.scss +72 -20
- package/_standard-14-analog.scss +20 -1
- package/_standard-30-contrast.scss +14 -12
- package/_standard-31-print.scss +19 -0
- package/_standard-32-eink.scss +15 -0
- package/_standard-50-utilities.scss +22 -11
- package/_standard-99-debug.scss +10 -7
- package/obsidian.scss +2 -2
- package/package.json +1 -4
- package/standard.scss +11 -5
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
@use "standard-00-variables" as *;
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @component Components & Buttons
|
|
5
|
+
* @category Components
|
|
6
|
+
* @description Interactive buttons, button groups, loaders, and keycaps.
|
|
7
|
+
* Buttons extend `%surface` and `%padding-text`, providing tactile hover states,
|
|
8
|
+
* focus outlines, and active feedback.
|
|
9
|
+
*
|
|
10
|
+
* @property button Zero-class interactive button element.
|
|
11
|
+
* @property a.btn Anchor styled identically to a button.
|
|
12
|
+
* @property .btn-primary Primary action button filled with accent color.
|
|
13
|
+
* @property .btn-secondary Secondary button with subtle surface background.
|
|
14
|
+
* @property .btn-outline Outlined button with hairline border.
|
|
15
|
+
* @property .btn-destructive Destructive action button using error red.
|
|
16
|
+
* @property .btn-ghost Ghost button transparent until hover.
|
|
17
|
+
* @property .btn-icon Square icon action button.
|
|
18
|
+
* @property .btn-group Segmented inline button group with shared borders.
|
|
19
|
+
* @property .loader Rotating circular spinner with accent glow.
|
|
20
|
+
*/
|
|
21
|
+
|
|
3
22
|
/* =========================== */
|
|
4
23
|
/* BUTTONS */
|
|
5
24
|
/* =========================== */
|
|
6
25
|
|
|
26
|
+
/* Keycaps */
|
|
27
|
+
kbd {
|
|
28
|
+
background-color: var(--color-surface);
|
|
29
|
+
border: none;
|
|
30
|
+
border-radius: 15%;
|
|
31
|
+
box-shadow: var(--shadow-raised);
|
|
32
|
+
padding: var(--space-d4) var(--space-d4);
|
|
33
|
+
font-family: var(--font-monospace);
|
|
34
|
+
font-size: var(--size-2xs);
|
|
35
|
+
color: var(--color-foreground);
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
7
39
|
.loader {
|
|
8
40
|
width: var(--size-lg);
|
|
9
41
|
height: var(--size-lg);
|
|
@@ -33,19 +65,6 @@
|
|
|
33
65
|
}
|
|
34
66
|
}
|
|
35
67
|
|
|
36
|
-
kbd {
|
|
37
|
-
background-color: var(--color-surface);
|
|
38
|
-
background-image: var(--effect-grain);
|
|
39
|
-
border: none;
|
|
40
|
-
border-radius: var(--radius);
|
|
41
|
-
/* Button-like raised effect */
|
|
42
|
-
box-shadow: var(--shadow-raised);
|
|
43
|
-
padding: var(--space-d6) var(--space-d3);
|
|
44
|
-
font-family: var(--font-monospace);
|
|
45
|
-
font-size: var(--size-xs);
|
|
46
|
-
pointer-events: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
68
|
$types: "secondary", "outline", "destructive", "ghost", "icon";
|
|
50
69
|
|
|
51
70
|
:where(button),
|
|
@@ -339,6 +358,17 @@ a.badge.secondary:hover,
|
|
|
339
358
|
}
|
|
340
359
|
}
|
|
341
360
|
|
|
361
|
+
/**
|
|
362
|
+
* @name Alert Banners
|
|
363
|
+
* @group components-feedback
|
|
364
|
+
* @description Contextual feedback notifications with status colors and left accent borders.
|
|
365
|
+
*
|
|
366
|
+
* @property .alert Container banner using interface typography and status tinting.
|
|
367
|
+
* @property .alert.success Success alert themed with green status color.
|
|
368
|
+
* @property .alert.warning Warning alert themed with orange status color.
|
|
369
|
+
* @property .alert.error Error alert themed with red status color.
|
|
370
|
+
* @property .alert.info Informational alert themed with blue status color.
|
|
371
|
+
*/
|
|
342
372
|
.alert {
|
|
343
373
|
font-family: var(--font-interface);
|
|
344
374
|
--color-alert: var(--color-accent);
|
|
@@ -408,6 +438,13 @@ a.badge.secondary:hover,
|
|
|
408
438
|
* - Dark mode shadow adjustments for better depth perception
|
|
409
439
|
* - Optional card image hero with object-fit controls
|
|
410
440
|
*
|
|
441
|
+
* @property .card Structured container with surface elevation, hairline borders, and rhythm padding.
|
|
442
|
+
* @property .card-header Header area for card title and metadata.
|
|
443
|
+
* @property .card-body Main content body with automatic vertical rhythm.
|
|
444
|
+
* @property .card-footer Bottom action bar for links and buttons.
|
|
445
|
+
* @property .card.clickable Interactive clickable card variant with hover lift.
|
|
446
|
+
* @property .card-grid Responsive grid container specifically designed for card multiples.
|
|
447
|
+
*
|
|
411
448
|
* @see {class} .grid - Often used to layout multiple cards in columns
|
|
412
449
|
* @see {variable} --base - Controls internal spacing rhythm
|
|
413
450
|
* @see {class} .prose - Can be used inside card-body for rich content
|
|
@@ -496,9 +533,6 @@ a.badge.secondary:hover,
|
|
|
496
533
|
background-color: var(--color-surface);
|
|
497
534
|
transition: all var(--transition);
|
|
498
535
|
border-radius: var(--radius);
|
|
499
|
-
/* --border currently resolves to `none` everywhere in this file
|
|
500
|
-
(card, card header/footer, .comment, .comment-content) — see the
|
|
501
|
-
AUDIT FLAG in _standard-02-color.scss. */
|
|
502
536
|
border: var(--border);
|
|
503
537
|
|
|
504
538
|
&.hero {
|
|
@@ -599,6 +633,16 @@ card.inset {
|
|
|
599
633
|
box-shadow: inset var(--shadow) !important;
|
|
600
634
|
}
|
|
601
635
|
|
|
636
|
+
/**
|
|
637
|
+
* @name Callout Blocks
|
|
638
|
+
* @group components-layout
|
|
639
|
+
* @description Obsidian-style callout boxes with icons, titles, and collapsible folding.
|
|
640
|
+
*
|
|
641
|
+
* @property .callout Container callout card with raised shadow and ring border.
|
|
642
|
+
* @property .callout-title Header title for callout.
|
|
643
|
+
* @property .callout-content Body content within callout.
|
|
644
|
+
* @property details.callout Collapsible fold callout using native HTML details.
|
|
645
|
+
*/
|
|
602
646
|
.callout {
|
|
603
647
|
/* Raised effect for callout cards */
|
|
604
648
|
box-shadow: var(--shadow-raised), var(--shadow-ring);
|
|
@@ -799,7 +843,7 @@ details .callout-fold {
|
|
|
799
843
|
}
|
|
800
844
|
|
|
801
845
|
// Caption Callout (after an image)
|
|
802
|
-
|
|
846
|
+
.callout[data-callout="caption"] {
|
|
803
847
|
padding: 0;
|
|
804
848
|
background: none;
|
|
805
849
|
padding-block-start: var(--gap);
|
|
@@ -815,10 +859,10 @@ p:has(img) + .callout[data-callout="caption" i] {
|
|
|
815
859
|
padding: 0;
|
|
816
860
|
background: none;
|
|
817
861
|
color: var(--color-muted);
|
|
818
|
-
border: none;
|
|
862
|
+
border: none !important;
|
|
819
863
|
|
|
820
864
|
box-shadow: none;
|
|
821
|
-
text-align: center;
|
|
865
|
+
text-align: center !important;
|
|
822
866
|
text-wrap: balance;
|
|
823
867
|
}
|
|
824
868
|
}
|
|
@@ -847,8 +891,14 @@ details .callout-fold {
|
|
|
847
891
|
|
|
848
892
|
/**
|
|
849
893
|
* @name Comments
|
|
850
|
-
* @group
|
|
894
|
+
* @group components
|
|
851
895
|
* @since 0.11.0
|
|
896
|
+
* @description Threaded discussion list with author names, timestamps, and quotes.
|
|
897
|
+
*
|
|
898
|
+
* @property #comments Root comments container.
|
|
899
|
+
* @property .comment Single comment card with surface background and elevation.
|
|
900
|
+
* @property .comment-header Author, date, and status metadata bar.
|
|
901
|
+
* @property .comment-content Indented comment message body.
|
|
852
902
|
*/
|
|
853
903
|
|
|
854
904
|
#comments {
|
|
@@ -910,6 +960,8 @@ details .callout-fold {
|
|
|
910
960
|
*
|
|
911
961
|
* Actions within alerts (links, buttons) should be visually distinct but not
|
|
912
962
|
* overwhelming. This provides subtle styling that inherits the alert's color.
|
|
963
|
+
*
|
|
964
|
+
* @property .alert-action Inline action link within an alert, inheriting `--color-alert`.
|
|
913
965
|
*/
|
|
914
966
|
/* Fixed 2026-07-14 — was an undefined token (--alert-border-color),
|
|
915
967
|
corrected to the real --color-alert, matching the docblock's stated
|
package/_standard-14-analog.scss
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
@use "standard-00-variables" as *;
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @component Analog
|
|
5
|
+
* @category Effects
|
|
6
|
+
* @description The "analog atmosphere" layer: a fixed, full-viewport grain
|
|
7
|
+
* texture painted over every page with zero markup (`html::after`), plus a
|
|
8
|
+
* subtle ink-bleed text-shadow for text inside `.prose`/`.ink`/`.note`
|
|
9
|
+
* containers. Grain intensity and blend mode swap automatically in dark
|
|
10
|
+
* mode.
|
|
11
|
+
*
|
|
12
|
+
* @property .grain Applies grain overlay to a specific subtree container.
|
|
13
|
+
* @property --effect-grain Coarse noise texture SVG filter data URI used by page-wide overlay.
|
|
14
|
+
* @property --effect-noise Fine noise texture SVG filter data URI for high-density grain.
|
|
15
|
+
* @property --effect-opacity Overlay opacity (0.15 in light mode, 0.05 in dark mode).
|
|
16
|
+
* @property --effect-blend-mode Overlay blend mode (`multiply` in light mode, `screen` in dark).
|
|
17
|
+
* @property --effect-ink Subtle ink-bleed text-shadow applied to typography.
|
|
18
|
+
* @property .ink Container applying organic ink-bleed text-shadows to descendants.
|
|
19
|
+
* @property .note Note container applying ink-bleed text-shadows to content.
|
|
20
|
+
*/
|
|
21
|
+
|
|
3
22
|
#{$stnd-theme-scope} {
|
|
4
23
|
/*
|
|
5
24
|
This data URI is an SVG with a <feTurbulence> filter.
|
|
@@ -27,7 +46,7 @@
|
|
|
27
46
|
|
|
28
47
|
#{$stnd-theme-scope}[data-color-mode="dark"] {
|
|
29
48
|
--effect-blend-mode: screen;
|
|
30
|
-
--effect-opacity: 0.
|
|
49
|
+
--effect-opacity: 0.025;
|
|
31
50
|
}
|
|
32
51
|
|
|
33
52
|
/* 1. Global Atmosphere (The Desk) */
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
@use "standard-00-variables" as *;
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @component Accessibility Preferences
|
|
5
|
+
* @category Effects
|
|
6
|
+
* @description Responds to OS-level accessibility preferences with zero
|
|
7
|
+
* markup or opt-in classes: `prefers-contrast: high/more` slams every color
|
|
8
|
+
* token to pure black/white and hides the decorative grain texture;
|
|
9
|
+
* `prefers-reduced-motion: reduce` (also `update: slow` / `monochrome`,
|
|
10
|
+
* @property --color-surface Surface token forced to match background in high-contrast mode.
|
|
11
|
+
* @property --color-border Border token forced to pure foreground color.
|
|
12
|
+
* @property --color-muted Muted text token forced to pure foreground color.
|
|
13
|
+
* @property --shadow Shadow elevation disabled (`0`) to eliminate low-contrast blur.
|
|
14
|
+
* @property --transition Transition duration forced to `0s` under reduced-motion preferences.
|
|
15
|
+
*/
|
|
16
|
+
|
|
3
17
|
/* ===== ACCESSIBILITY SUPPORT ===== */
|
|
4
18
|
/* High contrast mode support */
|
|
5
19
|
@media (prefers-contrast: high), (prefers-contrast: more) {
|
|
@@ -29,8 +43,6 @@
|
|
|
29
43
|
@media (prefers-reduced-motion: reduce), (update: slow), (monochrome) {
|
|
30
44
|
#{$stnd-theme-scope} {
|
|
31
45
|
--transition: 0s;
|
|
32
|
-
--toast-progress-duration: 0.5s;
|
|
33
|
-
--toast-progress-easing: linear;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
*,
|
|
@@ -40,14 +52,4 @@
|
|
|
40
52
|
animation: none !important;
|
|
41
53
|
scroll-behavior: auto !important;
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
/* Deliberate exception to the blanket transition:none above (wins via
|
|
45
|
-
higher specificity — .toast-progress beats the universal *). A toast's
|
|
46
|
-
countdown bar is functional motion (communicates time remaining), not
|
|
47
|
-
decorative, so it's exempted rather than disabled — just slowed to a
|
|
48
|
-
flat --toast-progress-duration instead of stopped outright. */
|
|
49
|
-
.toast-progress {
|
|
50
|
-
transition: width var(--toast-progress-duration)
|
|
51
|
-
var(--toast-progress-easing) !important;
|
|
52
|
-
}
|
|
53
55
|
}
|
package/_standard-31-print.scss
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
@use "standard-00-variables" as *;
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @component Print
|
|
5
|
+
* @category Effects
|
|
6
|
+
* @description The `@media print` stylesheet: forces black-on-white tokens,
|
|
7
|
+
* shrinks type and tightens spacing for paper, hides site chrome
|
|
8
|
+
* (`header`/`footer`/`nav`/`aside`) and the analog grain overlay, strips
|
|
9
|
+
* decorative shadows, expands external links into visible URL text, and
|
|
10
|
+
* adds page-break protection plus `@page` margins with a page counter.
|
|
11
|
+
*
|
|
12
|
+
* @property .no-print Hides the element and all its descendants only when printing.
|
|
13
|
+
* @property --color-foreground Forced to pure black for high print legibility.
|
|
14
|
+
* @property --color-background Forced to pure white for paper ink conservation.
|
|
15
|
+
* @property --font-size Adjusted root font size for printed text (`0.925rem`).
|
|
16
|
+
* @property --line-height Tightened line height for print reading (`1.4`).
|
|
17
|
+
*
|
|
18
|
+
* @example html - Hide something from the printed page
|
|
19
|
+
* <button class="no-print">Share</button>
|
|
20
|
+
*/
|
|
21
|
+
|
|
3
22
|
@media print {
|
|
4
23
|
#{$stnd-theme-scope} {
|
|
5
24
|
--color-foreground: black;
|
package/_standard-32-eink.scss
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
other file in the package. */
|
|
3
3
|
@use "standard-00-variables" as *;
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @component E-ink
|
|
7
|
+
* @category Effects
|
|
8
|
+
* @description The e-ink / monochrome-display layer (`update: slow` or
|
|
9
|
+
* `monochrome`): forces absolute black-and-white, removes all motion,
|
|
10
|
+
* shadows, filters and text-shadows, replaces shadows with hard 2px black
|
|
11
|
+
* borders, thickens headings to weight 900, and dithers images to
|
|
12
|
+
* high-contrast grayscale. Zero markup or opt-in classes required.
|
|
13
|
+
*
|
|
14
|
+
* @property --color-accent Forced to black — no chromatic accents on black-and-white screens.
|
|
15
|
+
* @property --color-foreground Forced to pure black.
|
|
16
|
+
* @property --color-background Forced to pure white.
|
|
17
|
+
* @property --color-border Forced to solid black, replacing fuzzy shadows with sharp contrast.
|
|
18
|
+
*/
|
|
19
|
+
|
|
5
20
|
@media screen and (update: slow), (monochrome) {
|
|
6
21
|
#{$stnd-theme-scope} {
|
|
7
22
|
/* Force absolute contrast */
|
|
@@ -3,8 +3,19 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @component Utility Classes
|
|
5
5
|
* @category Utilities
|
|
6
|
-
* @description Hybrid utility system supporting both Industrial T-shirt sizes
|
|
7
|
-
* and Mathematical units (1-12).
|
|
6
|
+
* @description Hybrid utility system supporting both Industrial T-shirt sizes (3xs..6xl)
|
|
7
|
+
* and Mathematical rhythm units (1-12, half, trim, leading).
|
|
8
|
+
*
|
|
9
|
+
* @property .p-*, .pt-*, .pb-*, .pl-*, .pr-*, .px-*, .py-* Padding scale utilities.
|
|
10
|
+
* @property .m-*, .mt-*, .mb-*, .ml-*, .mr-*, .mx-*, .my-* Margin scale utilities.
|
|
11
|
+
* @property .gap-*, .gap-x-*, .gap-y-* Grid and flex gap utilities.
|
|
12
|
+
* @property .w-*, .h-*, .max-w-*, .min-w-*, .max-h-*, .min-h-* Sizing scale utilities.
|
|
13
|
+
* @property .text-muted, .text-subtle, .text-accent Foreground text color utilities.
|
|
14
|
+
* @property .bg-surface, .bg-background Background color utilities.
|
|
15
|
+
* @property .border, .border-accent, .border-transparent Border stroke utilities.
|
|
16
|
+
* @property .rounded, .rounded-sm, .rounded-lg, .rounded-full Border radius utilities.
|
|
17
|
+
* @property .shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl Elevation shadow utilities.
|
|
18
|
+
* @property .flex, .inline-flex, .grid, .inline-grid, .block, .inline-block, .hidden Layout display utilities.
|
|
8
19
|
*/
|
|
9
20
|
|
|
10
21
|
/* ============================================================ */
|
|
@@ -120,15 +131,15 @@
|
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
.max-w-small {
|
|
123
|
-
max-width: var(--
|
|
134
|
+
max-width: var(--line-width-sm) !important;
|
|
124
135
|
}
|
|
125
136
|
|
|
126
137
|
.max-w-large {
|
|
127
|
-
max-width: var(--
|
|
138
|
+
max-width: var(--line-width-lg) !important;
|
|
128
139
|
}
|
|
129
140
|
|
|
130
|
-
.max-w-
|
|
131
|
-
max-width: var(--
|
|
141
|
+
.max-w-medium {
|
|
142
|
+
max-width: var(--line-width-md) !important;
|
|
132
143
|
}
|
|
133
144
|
|
|
134
145
|
.max-w-line {
|
|
@@ -423,6 +434,11 @@
|
|
|
423
434
|
font-weight: var(--font-weight-bold) !important;
|
|
424
435
|
}
|
|
425
436
|
|
|
437
|
+
|
|
438
|
+
.font-header {
|
|
439
|
+
font-family: var(--font-header) !important;
|
|
440
|
+
}
|
|
441
|
+
|
|
426
442
|
.font-normal {
|
|
427
443
|
font-weight: var(--font-weight) !important;
|
|
428
444
|
}
|
|
@@ -798,9 +814,6 @@
|
|
|
798
814
|
border: 0 !important;
|
|
799
815
|
}
|
|
800
816
|
|
|
801
|
-
/* --border currently resolves to `none` — see the AUDIT FLAG in
|
|
802
|
-
_standard-02-color.scss. Affects .border/.border-accent/.border-t/-b/
|
|
803
|
-
-l/-r below too. */
|
|
804
817
|
.border {
|
|
805
818
|
border: var(--border) !important;
|
|
806
819
|
}
|
|
@@ -918,8 +931,6 @@
|
|
|
918
931
|
page-break-inside: avoid;
|
|
919
932
|
}
|
|
920
933
|
|
|
921
|
-
/* --border currently resolves to `none` — see the AUDIT FLAG in
|
|
922
|
-
_standard-02-color.scss. */
|
|
923
934
|
.columns-rule {
|
|
924
935
|
column-rule: var(--border);
|
|
925
936
|
}
|
package/_standard-99-debug.scss
CHANGED
|
@@ -9,13 +9,16 @@
|
|
|
9
9
|
* baseline rhythm, reading layout zones, and other layout metrics. Essential for
|
|
10
10
|
* design system development and layout debugging. Automatically hidden in print.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
12
|
+
* @property .stnd-debug Enable debug visualization overlays on the page or container.
|
|
13
|
+
* @property .debug-baseline-grid Horizontal baseline rhythm grid overlay.
|
|
14
|
+
* @property .debug-grid-columns Vertical grid column guidelines overlay.
|
|
15
|
+
* @property .debug-reading-zones Reading layout column boundary highlights.
|
|
16
|
+
* @property .debug-rhythm-spacing Margin and padding bounding box visualizer.
|
|
17
|
+
* @property .debug-breakpoint-indicator Viewport responsive breakpoint tag indicator.
|
|
18
|
+
* @property .debug-panel Fixed status panel reporting active layout metrics.
|
|
19
|
+
* @property --stnd-lab-bg Debug HUD background color.
|
|
20
|
+
* @property --stnd-lab-text Debug HUD text color.
|
|
21
|
+
* @property --stnd-lab-accent Debug HUD accent highlight color.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* // Enable debug mode on page
|
package/obsidian.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This entry point is specifically for the Obsidian plugin.
|
|
5
5
|
* It ONLY includes the core CSS variables (tokens, colors) scoped to
|
|
6
|
-
* body.stnd-
|
|
6
|
+
* body.stnd-adapter (not :root — Obsidian's window is shared with other
|
|
7
7
|
* themes/plugins, so tokens are namespaced rather than declared globally),
|
|
8
8
|
* without including any of the global element resets (*, html, body)
|
|
9
9
|
* or layout/typography element selectors that would destroy Obsidian's UI.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
@use "standard-00-variables" as * with (
|
|
16
|
-
$stnd-theme-scope: "body.stnd-
|
|
16
|
+
$stnd-theme-scope: "body.stnd-adapter"
|
|
17
17
|
);
|
|
18
18
|
@use "standard-01-token";
|
|
19
19
|
@use "standard-02-color";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stnd/styles",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Francis Fontaine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"wrangler": "^4.105.0"
|
|
39
|
-
},
|
|
40
37
|
"devDependencies": {
|
|
41
38
|
"sass": "^1.70.0"
|
|
42
39
|
},
|
package/standard.scss
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Built to be themable. Zero runtime dependencies.
|
|
2
|
+
* @component Introduction
|
|
3
|
+
* @category Overview
|
|
4
|
+
* @description Fine-art typography framework combining classical European design principles,
|
|
5
|
+
* mathematical precision with the golden ratio, and modern relative-color syntax.
|
|
7
6
|
*
|
|
8
7
|
* Based on research from:
|
|
9
8
|
* - The Elements of Typographic Style (Robert Bringhurst)
|
|
@@ -14,6 +13,13 @@
|
|
|
14
13
|
*
|
|
15
14
|
* Philosophy: Respect classic typography rules, but readability always wins.
|
|
16
15
|
*
|
|
16
|
+
* @property Foundation Layer Reset, variables, design tokens, OKLCH color engine, and typography system.
|
|
17
|
+
* @property Layout Layer 12-column Swiss grid, vertical rhythm engine, and fluid prose layouts.
|
|
18
|
+
* @property Elements Layer Base document root, responsive media/lightbox, styled lists, tables, forms, and syntax highlighting.
|
|
19
|
+
* @property Components Layer Button hierarchy, elevated cards, callouts, alerts, and analog atmospheric grain.
|
|
20
|
+
* @property Modes Layer High contrast accessibility, print stylesheets, and e-ink display adaptation.
|
|
21
|
+
* @property Utilities Layer T-shirt and mathematical scale utilities, and layout debugging overlays.
|
|
22
|
+
*
|
|
17
23
|
* @version @VERSION_PLACEHOLDER@
|
|
18
24
|
* @license MIT
|
|
19
25
|
* @package @stnd/styles
|