@wpmoo/ui 1.0.0-rc.1 → 1.0.0-rc.3

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.
@@ -0,0 +1,24 @@
1
+ // Moo UI public Sass config
2
+ //
3
+ // Import this before Bootstrap variables so overrides take precedence.
4
+ //
5
+ // Only the variables below are public. Derived $moo-* tokens and component
6
+ // knobs are internal and may change without notice.
7
+
8
+ $primary: #171717 !default; // Brand color
9
+ $secondary: #f4f4f5 !default; // Secondary surface color
10
+ $success: #047857 !default; // Success color
11
+ $info: #0369a1 !default; // Informational color
12
+ $warning: #b45309 !default; // Warning color
13
+ $danger: #e7000b !default; // Destructive color
14
+ $light: #fafafa !default; // Light surface color
15
+ $dark: #18181b !default; // Dark surface color
16
+
17
+ $body-color: #18181b !default; // Document text color
18
+ $body-bg: #fff !default; // Document background color
19
+ $font-size-base: 0.875rem !default; // Bootstrap-compatible base font size
20
+
21
+ $border-color: #e4e4e7 !default; // Default border color
22
+ $border-radius: 0.5rem !default; // Default radius
23
+ $border-radius-sm: 0.375rem !default; // Small radius
24
+ $border-radius-lg: 0.625rem !default; // Large radius
@@ -1,51 +0,0 @@
1
- // Moo UI — Public Sass Facade: Settings
2
- //
3
- // This is the consumer-facing subset of Moo UI's Sass variables.
4
- // Import this file BEFORE Bootstrap's _variables.scss so your overrides
5
- // take precedence over Bootstrap's own !default values.
6
- //
7
- // Usage (relative-path, Bootstrap Option B pattern):
8
- // @import "../node_modules/bootstrap/scss/functions";
9
- // @import "../node_modules/@wpmoo/ui/scss/facade-settings";
10
- // $primary: #your-brand-color;
11
- // @import "../node_modules/bootstrap/scss/variables";
12
- // ...
13
- //
14
- // Usage (include_paths-based, bundler-configured):
15
- // @import "bootstrap/scss/functions";
16
- // @import "@wpmoo/ui/scss/facade-settings";
17
- // $primary: #your-brand-color;
18
- // @import "bootstrap/scss/variables";
19
- // ...
20
- //
21
- // Public variable allow-list (0.9.0):
22
- //
23
- // Brand colors — any valid Sass color value:
24
- // $primary Default: #171717
25
- // $secondary Default: #f4f4f5
26
- // $success Default: #16803c
27
- // $info Default: #0f6e8c
28
- // $warning Default: #a15c00
29
- // $danger Default: #dc2626
30
- // $light Default: #fafafa
31
- // $dark Default: #18181b
32
- //
33
- // Body — any valid Sass color value:
34
- // $body-color Default: #18181b
35
- // $body-bg Default: #fff
36
- //
37
- // Borders — any valid Sass color (border-color) or CSS <length> (radius):
38
- // $border-color Default: #e4e4e7
39
- // $border-radius Default: 0.5rem
40
- // $border-radius-sm Default: 0.375rem
41
- // $border-radius-lg Default: 0.625rem
42
- //
43
- // Typography — rem/em/unitless ratio (same constraint as Bootstrap's
44
- // $font-size-base; see vendor/bootstrap/scss/_variables.scss):
45
- // $font-size-base Default: 0.875rem
46
- //
47
- // Derived tokens ($moo-*) are computed from the above and are not part of
48
- // the public facade. Component-level knobs ($moo-*-dark, $moo-sidebar,
49
- // etc.) are internal and may change without notice.
50
-
51
- @import "settings/facade_public";
@@ -1,23 +0,0 @@
1
- // Public Sass facade allow-list — the only variables a facade consumer can
2
- // override. This file is the source of truth for the public Sass surface.
3
- // _palette.scss imports this first, then declares its own internal additions.
4
- // Do NOT add variables here without updating the freeze document
5
- // (src/certification/api-freeze-0.9.0.json) and getting explicit approval.
6
-
7
- $primary: #171717 !default;
8
- $secondary: #f4f4f5 !default;
9
- $success: #16803c !default;
10
- $info: #0f6e8c !default;
11
- $warning: #a15c00 !default;
12
- $danger: #dc2626 !default;
13
- $light: #fafafa !default;
14
- $dark: #18181b !default;
15
-
16
- $body-color: #18181b !default;
17
- $body-bg: #fff !default;
18
- $font-size-base: 0.875rem !default;
19
-
20
- $border-color: #e4e4e7 !default;
21
- $border-radius: 0.5rem !default;
22
- $border-radius-sm: 0.375rem !default;
23
- $border-radius-lg: 0.625rem !default;