nk_jtb 0.18.0 → 0.19.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/directory-structure.md +126 -0
- package/index.html +275 -369
- package/package.json +1 -1
- package/resolvers.md +65 -23
- package/src/_random-for-review.scss +1 -5
- package/src/base/_base.scss +6 -1
- package/src/build.scss +1 -0
- package/src/extras/_nk-docs.scss +0 -3
- package/src/functions/_resolvers.scss +54 -0
- package/src/mixins/_build-classes.scss +19 -60
- package/src/mixins/_media.scss +32 -20
- package/src/play.scss +32 -1
- package/src/utilities/_display-visibility.scss +8 -7
- package/src/utilities/_misc.scss +21 -0
- package/src/utilities/_themes.scss +0 -49
- package/src/mixins/_helpers.scss +0 -81
- package/src/mixins/_resolvers.scss +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# SCSS Directory Structure
|
|
2
|
+
|
|
3
|
+
## Current Structure
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
scss/
|
|
7
|
+
├── functions/ # Pure, reusable utility functions
|
|
8
|
+
├── mixins/ # Pure, reusable mixins
|
|
9
|
+
└── systems/ # Complete workflows (functions + mixins together)
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### functions/
|
|
13
|
+
Pure utility functions that can be used anywhere. These are standalone functions that
|
|
14
|
+
don't depend on specific mixins or configurations.
|
|
15
|
+
|
|
16
|
+
**Examples:** String manipulation, math helpers, validation functions, resolvers.
|
|
17
|
+
|
|
18
|
+
### mixins/
|
|
19
|
+
Reusable mixins for common styling patterns. These are general-purpose tools that work
|
|
20
|
+
independently.
|
|
21
|
+
|
|
22
|
+
**Examples:** Media query mixins, layout helpers, generic styling patterns.
|
|
23
|
+
|
|
24
|
+
### systems/
|
|
25
|
+
Complete workflows where functions and mixins work together as a cohesive unit. These are
|
|
26
|
+
feature-complete modules that combine related functionality.
|
|
27
|
+
|
|
28
|
+
**Examples:** Spacing systems, typography systems, color systems.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## _resolvers.scss
|
|
32
|
+
|
|
33
|
+
### Resolver Functions
|
|
34
|
+
These functions conditionally resolve values based on configuration modes. They ensure
|
|
35
|
+
valid lists or values are returned, preserving original values when the mode is disabled.
|
|
36
|
+
|
|
37
|
+
**resolve-breakpoints():** Resolves breakpoints based on responsive mode.
|
|
38
|
+
|
|
39
|
+
**Examples:**
|
|
40
|
+
- `resolve-breakpoints(true, null)` → `('sm', 'md', 'lg', 'xl')`
|
|
41
|
+
- `resolve-breakpoints(false, ('lg'))` → `('lg')`
|
|
42
|
+
- `resolve-breakpoints(false, null)` → `null`
|
|
43
|
+
|
|
44
|
+
### Getter Functions
|
|
45
|
+
These functions return default values when none are provided, ensuring consistent data
|
|
46
|
+
access.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<!-- scss/
|
|
51
|
+
├── components/ # UI component styles
|
|
52
|
+
├── config/ # Configuration maps and design tokens
|
|
53
|
+
│ ├── _colors.scss # Color palettes and variants
|
|
54
|
+
│ ├── _layout.scss # Display, position, alignment maps
|
|
55
|
+
│ ├── _spacing.scss # Margin, padding, border values
|
|
56
|
+
│ ├── _typography.scss # Font weights, sizes, families
|
|
57
|
+
│ └── _index.scss # Forwards all config files
|
|
58
|
+
├── utilities/ # Utility class generation and configs
|
|
59
|
+
├── _base.scss # Base styles, typography, root
|
|
60
|
+
└── _properties.scss # Property maps for utility generation -->
|
|
61
|
+
<!--
|
|
62
|
+
### base/
|
|
63
|
+
Foundation styles including CSS resets, base typography, root variables, and fundamental
|
|
64
|
+
styling that applies globally.
|
|
65
|
+
|
|
66
|
+
### components/
|
|
67
|
+
Styles for specific UI components. These are complete styling solutions for individual
|
|
68
|
+
interface elements.
|
|
69
|
+
|
|
70
|
+
**Examples:** Buttons, cards, modals, navigation components.
|
|
71
|
+
|
|
72
|
+
### config/
|
|
73
|
+
Configuration maps and design tokens split by domain. Each file focuses on a specific area
|
|
74
|
+
of configuration, keeping files manageable and easy to navigate.
|
|
75
|
+
|
|
76
|
+
**Files:** Colors, layout properties, spacing values, typography scales.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### properties/
|
|
81
|
+
Property maps that define how utility classes are generated. Contains the configuration
|
|
82
|
+
that connects design tokens to CSS utility classes.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### utilities/
|
|
87
|
+
Utility class generation and related configurations. This is where utility classes are
|
|
88
|
+
actually created and applied.
|
|
89
|
+
|
|
90
|
+
**Examples:** Generated spacing utilities, color utilities, typography utilities. -->
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Alternative Flat Structure
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
src/
|
|
98
|
+
├── _config.scss # All configuration & variables
|
|
99
|
+
|
|
100
|
+
├── _properties.scss # All property maps & utility configs
|
|
101
|
+
├── _base.scss # Base styles, typography, root
|
|
102
|
+
├── _components.scss # All UI components
|
|
103
|
+
└── _utilities.scss # Generated utility classes
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### _config.scss
|
|
107
|
+
Central configuration file containing all variables, settings, and global constants that
|
|
108
|
+
control the system behavior.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### _properties.scss
|
|
113
|
+
All property maps and utility configurations. Contains the data structures that define how
|
|
114
|
+
utility classes are generated.
|
|
115
|
+
|
|
116
|
+
### _base.scss
|
|
117
|
+
Foundation styles including CSS resets, base typography, root variables, and fundamental
|
|
118
|
+
styling that applies globally.
|
|
119
|
+
|
|
120
|
+
### _components.scss
|
|
121
|
+
All UI component styles consolidated into a single file. Contains complete styling
|
|
122
|
+
solutions for interface elements.
|
|
123
|
+
|
|
124
|
+
### _utilities.scss
|
|
125
|
+
Generated utility classes. The output of the utility generation system, containing all the
|
|
126
|
+
actual CSS utility classes.
|