santycss 2.5.0 → 2.6.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 +60 -2
- package/dist/santy-animations.css +4 -1
- package/dist/santy-borders.css +243 -0
- package/dist/santy-colors.css +1569 -0
- package/dist/santy-components.css +229 -0
- package/dist/santy-core.css +30 -0
- package/dist/santy-effects.css +283 -0
- package/dist/santy-flex.css +91 -0
- package/dist/santy-grid.css +56 -0
- package/dist/santy-layout.css +1001 -0
- package/dist/santy-reset.css +42 -0
- package/dist/santy-sizing.css +243 -0
- package/dist/santy-spacing.css +640 -0
- package/dist/santy-start.css +258 -0
- package/dist/santy-typography.css +161 -0
- package/dist/santy.css +38 -0
- package/index.js +40 -19
- package/package.json +11 -1
package/dist/santy.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
/* @SANTYMOD:reset */
|
|
1
3
|
/* ============================================================
|
|
2
4
|
SantyCSS v2.3.0 — Plain-English Utility CSS Framework
|
|
3
5
|
https://github.com/santybad/santy_css
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
--santy-shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.06);
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
|
|
43
|
+
/* @SANTYMOD:layout */
|
|
40
44
|
/* ── Display ── */
|
|
41
45
|
.make-block { display: block; }
|
|
42
46
|
.make-inline { display: inline; }
|
|
@@ -54,6 +58,8 @@
|
|
|
54
58
|
.make-invisible { visibility: hidden; }
|
|
55
59
|
.make-collapse { visibility: collapse; }
|
|
56
60
|
|
|
61
|
+
|
|
62
|
+
/* @SANTYMOD:flex */
|
|
57
63
|
/* ── Flex Direction ── */
|
|
58
64
|
.flex-row { flex-direction: row; }
|
|
59
65
|
.flex-row-reverse { flex-direction: row-reverse; }
|
|
@@ -142,6 +148,8 @@
|
|
|
142
148
|
.order-11 { order: 11; }
|
|
143
149
|
.order-12 { order: 12; }
|
|
144
150
|
|
|
151
|
+
/* @SANTYMOD:grid */
|
|
152
|
+
|
|
145
153
|
/* ── Grid Template Columns ── */
|
|
146
154
|
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
147
155
|
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
@@ -196,6 +204,8 @@
|
|
|
196
204
|
.grid-auto-cols-fr { grid-auto-columns: minmax(0, 1fr); }
|
|
197
205
|
|
|
198
206
|
|
|
207
|
+
/* @SANTYMOD:spacing */
|
|
208
|
+
|
|
199
209
|
/* ── Padding ── */
|
|
200
210
|
.add-padding-0 { padding: 0px; }
|
|
201
211
|
.add-padding-top-0 { padding-top: 0px; }
|
|
@@ -833,6 +843,8 @@
|
|
|
833
843
|
.gap-x-1024 { column-gap: 1024px; }
|
|
834
844
|
.gap-y-1024 { row-gap: 1024px; }
|
|
835
845
|
|
|
846
|
+
/* @SANTYMOD:sizing */
|
|
847
|
+
|
|
836
848
|
/* ── Width ── */
|
|
837
849
|
.set-width-0 { width: 0px; }
|
|
838
850
|
.set-width-1 { width: 1px; }
|
|
@@ -1073,6 +1085,8 @@
|
|
|
1073
1085
|
.min-width-none { min-width: none; }
|
|
1074
1086
|
.max-width-none { max-width: none; }
|
|
1075
1087
|
|
|
1088
|
+
/* @SANTYMOD:borders */
|
|
1089
|
+
|
|
1076
1090
|
/* ── Border Width ── */
|
|
1077
1091
|
.add-border-0 { border: 0px solid; }
|
|
1078
1092
|
.add-border-top-0 { border-top: 0px solid; }
|
|
@@ -1313,6 +1327,8 @@
|
|
|
1313
1327
|
.round-left-128 { border-top-left-radius: 128px; border-bottom-left-radius: 128px; }
|
|
1314
1328
|
.round-right-128 { border-top-right-radius: 128px; border-bottom-right-radius: 128px; }
|
|
1315
1329
|
|
|
1330
|
+
/* @SANTYMOD:typography */
|
|
1331
|
+
|
|
1316
1332
|
/* ── Font Size ── */
|
|
1317
1333
|
.set-text-8 { font-size: 8px; }
|
|
1318
1334
|
.set-text-9 { font-size: 9px; }
|
|
@@ -1436,6 +1452,8 @@
|
|
|
1436
1452
|
.letter-space-wider { letter-spacing: 0.05em; }
|
|
1437
1453
|
.letter-space-widest { letter-spacing: 0.1em; }
|
|
1438
1454
|
|
|
1455
|
+
/* @SANTYMOD:colors */
|
|
1456
|
+
|
|
1439
1457
|
/* ── Text Colors ── */
|
|
1440
1458
|
.color-red-50 { color: #fef2f2; }
|
|
1441
1459
|
.color-red-100 { color: #fee2e2; }
|
|
@@ -2402,6 +2420,8 @@
|
|
|
2402
2420
|
.gradient-to-bottom-right { background-image: linear-gradient(to bottom right, var(--grad-from, transparent), var(--grad-to, transparent)); }
|
|
2403
2421
|
|
|
2404
2422
|
|
|
2423
|
+
/* @SANTYMOD:layout */
|
|
2424
|
+
|
|
2405
2425
|
/* ── Position ── */
|
|
2406
2426
|
.position-static { position: static; }
|
|
2407
2427
|
.position-relative { position: relative; }
|
|
@@ -2598,6 +2618,8 @@
|
|
|
2598
2618
|
.overflow-y-visible { overflow-y: visible; }
|
|
2599
2619
|
|
|
2600
2620
|
|
|
2621
|
+
/* @SANTYMOD:effects */
|
|
2622
|
+
|
|
2601
2623
|
/* ── Opacity ── */
|
|
2602
2624
|
.opacity-0 { opacity: 0; }
|
|
2603
2625
|
.opacity-5 { opacity: 0.05; }
|
|
@@ -2730,6 +2752,8 @@
|
|
|
2730
2752
|
.cursor-none { cursor: none; }
|
|
2731
2753
|
|
|
2732
2754
|
|
|
2755
|
+
/* @SANTYMOD:layout */
|
|
2756
|
+
|
|
2733
2757
|
/* ── Object Fit ── */
|
|
2734
2758
|
.fit-cover { object-fit: cover; }
|
|
2735
2759
|
.fit-contain { object-fit: contain; }
|
|
@@ -2774,6 +2798,8 @@
|
|
|
2774
2798
|
.aspect-video { aspect-ratio: 16 / 9; }
|
|
2775
2799
|
|
|
2776
2800
|
|
|
2801
|
+
/* @SANTYMOD:effects */
|
|
2802
|
+
|
|
2777
2803
|
/* ── Filter ── */
|
|
2778
2804
|
.blur-sm { filter: blur(4px); }
|
|
2779
2805
|
.blur { filter: blur(8px); }
|
|
@@ -2924,6 +2950,8 @@
|
|
|
2924
2950
|
.will-change-transform { will-change: transform; }
|
|
2925
2951
|
|
|
2926
2952
|
|
|
2953
|
+
/* @SANTYMOD:variants */
|
|
2954
|
+
|
|
2927
2955
|
/* ═══════════════════════════════════════════════════════════════
|
|
2928
2956
|
RESPONSIVE VARIANTS
|
|
2929
2957
|
Usage: class="on-mobile:make-hidden md:make-flex lg:grid-cols-3"
|
|
@@ -16999,6 +17027,8 @@
|
|
|
16999
17027
|
}
|
|
17000
17028
|
/* ═══ VARIANTS_BLOCK_END ═══ */
|
|
17001
17029
|
|
|
17030
|
+
/* @SANTYMOD:animations */
|
|
17031
|
+
|
|
17002
17032
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
17003
17033
|
SANTY ANIMATIONS — animate.css compatible · Plain-English naming
|
|
17004
17034
|
═══════════════════════════════════════════════════════════════════════ */
|
|
@@ -18008,6 +18038,8 @@
|
|
|
18008
18038
|
}
|
|
18009
18039
|
|
|
18010
18040
|
|
|
18041
|
+
/* @SANTYMOD:components */
|
|
18042
|
+
|
|
18011
18043
|
/* ═══ SANTY COMPONENTS ═══ */
|
|
18012
18044
|
|
|
18013
18045
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -19641,6 +19673,8 @@
|
|
|
19641
19673
|
.set-max-width-narrow { max-width: 45ch; }
|
|
19642
19674
|
|
|
19643
19675
|
|
|
19676
|
+
/* @SANTYMOD:typography */
|
|
19677
|
+
|
|
19644
19678
|
/* ── Variable Font Weights ── */
|
|
19645
19679
|
.font-variable { font-variation-settings: normal; }
|
|
19646
19680
|
.font-condensed { font-stretch: condensed; font-variation-settings: 'wdth' 75; }
|
|
@@ -19677,6 +19711,8 @@
|
|
|
19677
19711
|
.set-width-5-of-6 { width: 83.3333%; }
|
|
19678
19712
|
|
|
19679
19713
|
|
|
19714
|
+
/* @SANTYMOD:colors */
|
|
19715
|
+
|
|
19680
19716
|
/* ── Caret Colors (full shade scale) ── */
|
|
19681
19717
|
.caret-red-50 { caret-color: #fef2f2; }
|
|
19682
19718
|
.caret-red-100 { caret-color: #fee2e2; }
|
|
@@ -20278,6 +20314,8 @@
|
|
|
20278
20314
|
.border-stone-shade-10 { border-color: color-mix(in srgb, #78716c 90%, #000000); }
|
|
20279
20315
|
/* ═══ VARIANTS_BLOCK_END ═══ */
|
|
20280
20316
|
|
|
20317
|
+
/* @SANTYMOD:layout */
|
|
20318
|
+
|
|
20281
20319
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
20282
20320
|
v1.7 — ACCESSIBILITY UTILITIES
|
|
20283
20321
|
═══════════════════════════════════════════════════════════════════════════ */
|
package/index.js
CHANGED
|
@@ -4,16 +4,29 @@
|
|
|
4
4
|
* CSS path helpers:
|
|
5
5
|
* const santy = require('santycss');
|
|
6
6
|
* santy.css → absolute path to dist/santy.css
|
|
7
|
-
* santy.min → absolute path to dist/santy.min.css
|
|
8
7
|
* santy.core → absolute path to dist/santy-core.css
|
|
9
8
|
* santy.components → absolute path to dist/santy-components.css
|
|
10
9
|
* santy.animations → absolute path to dist/santy-animations.css
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
* import 'santycss/css';
|
|
14
|
-
* import 'santycss/css/
|
|
15
|
-
* import 'santycss/css/
|
|
16
|
-
* import 'santycss/css/
|
|
11
|
+
* Granular module imports (React / Vue / Vite / Next.js):
|
|
12
|
+
* import 'santycss/css/reset'; // CSS reset + design tokens
|
|
13
|
+
* import 'santycss/css/layout'; // display, position, overflow, z-index, flex, grid helpers
|
|
14
|
+
* import 'santycss/css/flex'; // flexbox utilities
|
|
15
|
+
* import 'santycss/css/grid'; // CSS grid utilities
|
|
16
|
+
* import 'santycss/css/spacing'; // padding & margin
|
|
17
|
+
* import 'santycss/css/sizing'; // width & height
|
|
18
|
+
* import 'santycss/css/typography'; // font size, weight, family, text alignment
|
|
19
|
+
* import 'santycss/css/colors'; // text, background & border colors
|
|
20
|
+
* import 'santycss/css/borders'; // border width, style & radius
|
|
21
|
+
* import 'santycss/css/effects'; // opacity, shadows, filters, transitions, cursor
|
|
22
|
+
* import 'santycss/css/animations'; // keyframe animations
|
|
23
|
+
* import 'santycss/css/components'; // pre-built UI components
|
|
24
|
+
* import 'santycss/css/variants'; // responsive & state variants (hover, dark, md, lg…)
|
|
25
|
+
*
|
|
26
|
+
* Full bundles:
|
|
27
|
+
* import 'santycss/css'; // everything (1.2MB)
|
|
28
|
+
* import 'santycss/css/core'; // utilities only, no components
|
|
29
|
+
* import 'santycss/css/start'; // core + components, no extended variants
|
|
17
30
|
*
|
|
18
31
|
* Purge / tree-shake:
|
|
19
32
|
* const { purge, purgeFiles } = require('santycss');
|
|
@@ -23,30 +36,38 @@
|
|
|
23
36
|
const path = require('path');
|
|
24
37
|
const dist = path.join(__dirname, 'dist');
|
|
25
38
|
|
|
26
|
-
//
|
|
39
|
+
// Full bundle paths
|
|
27
40
|
const css = path.join(dist, 'santy.css');
|
|
28
41
|
const min = path.join(dist, 'santy.min.css');
|
|
29
42
|
const core = path.join(dist, 'santy-core.css');
|
|
43
|
+
const start = path.join(dist, 'santy-start.css');
|
|
30
44
|
const components = path.join(dist, 'santy-components.css');
|
|
31
45
|
const animations = path.join(dist, 'santy-animations.css');
|
|
46
|
+
const variants = path.join(dist, 'santy-variants.css');
|
|
32
47
|
const email = path.join(dist, 'santy-email.css');
|
|
33
48
|
|
|
49
|
+
// Granular module paths
|
|
50
|
+
const reset = path.join(dist, 'santy-reset.css');
|
|
51
|
+
const layout = path.join(dist, 'santy-layout.css');
|
|
52
|
+
const flex = path.join(dist, 'santy-flex.css');
|
|
53
|
+
const grid = path.join(dist, 'santy-grid.css');
|
|
54
|
+
const spacing = path.join(dist, 'santy-spacing.css');
|
|
55
|
+
const sizing = path.join(dist, 'santy-sizing.css');
|
|
56
|
+
const typography = path.join(dist, 'santy-typography.css');
|
|
57
|
+
const colors = path.join(dist, 'santy-colors.css');
|
|
58
|
+
const borders = path.join(dist, 'santy-borders.css');
|
|
59
|
+
const effects = path.join(dist, 'santy-effects.css');
|
|
60
|
+
|
|
34
61
|
// Purge API (tree-shaking)
|
|
35
62
|
const { purge, purgeFiles, extractClasses, minify, EXTS } = require('./lib/purge-core');
|
|
36
63
|
|
|
37
64
|
module.exports = {
|
|
38
|
-
//
|
|
39
|
-
css,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
animations,
|
|
44
|
-
email,
|
|
65
|
+
// Full bundles
|
|
66
|
+
css, min, core, start, components, animations, variants, email,
|
|
67
|
+
|
|
68
|
+
// Granular modules
|
|
69
|
+
reset, layout, flex, grid, spacing, sizing, typography, colors, borders, effects,
|
|
45
70
|
|
|
46
71
|
// Purge API
|
|
47
|
-
purge,
|
|
48
|
-
purgeFiles,
|
|
49
|
-
extractClasses,
|
|
50
|
-
minify,
|
|
51
|
-
EXTS,
|
|
72
|
+
purge, purgeFiles, extractClasses, minify, EXTS,
|
|
52
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "santycss",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Plain-English utility-first CSS framework — no build step, just classes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"style": "dist/santy.css",
|
|
@@ -13,6 +13,16 @@
|
|
|
13
13
|
"./css/components": "./dist/santy-components.css",
|
|
14
14
|
"./css/animations": "./dist/santy-animations.css",
|
|
15
15
|
"./css/email": "./dist/santy-email.css",
|
|
16
|
+
"./css/reset": "./dist/santy-reset.css",
|
|
17
|
+
"./css/layout": "./dist/santy-layout.css",
|
|
18
|
+
"./css/flex": "./dist/santy-flex.css",
|
|
19
|
+
"./css/grid": "./dist/santy-grid.css",
|
|
20
|
+
"./css/spacing": "./dist/santy-spacing.css",
|
|
21
|
+
"./css/sizing": "./dist/santy-sizing.css",
|
|
22
|
+
"./css/typography": "./dist/santy-typography.css",
|
|
23
|
+
"./css/colors": "./dist/santy-colors.css",
|
|
24
|
+
"./css/borders": "./dist/santy-borders.css",
|
|
25
|
+
"./css/effects": "./dist/santy-effects.css",
|
|
16
26
|
"./min": "./dist/santy.min.css",
|
|
17
27
|
"./postcss": "./postcss/index.js",
|
|
18
28
|
"./jit": "./santy-jit.js",
|