@insymetri/styleguide 0.1.29 → 0.1.30
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.
|
@@ -55,6 +55,10 @@ export const keyframes = {
|
|
|
55
55
|
'20%': { transform: 'rotate(-15deg)' },
|
|
56
56
|
'40%': { transform: 'rotate(0deg)' },
|
|
57
57
|
},
|
|
58
|
+
rowFadeIn: {
|
|
59
|
+
from: { opacity: '0', transform: 'translateY(-8px)' },
|
|
60
|
+
to: { opacity: '1', transform: 'translateY(0)' },
|
|
61
|
+
},
|
|
58
62
|
};
|
|
59
63
|
export const animation = {
|
|
60
64
|
spin: 'spin 0.6s linear infinite',
|
|
@@ -71,6 +75,7 @@ export const animation = {
|
|
|
71
75
|
ring: 'ring 1.5s ease-in-out infinite',
|
|
72
76
|
pulse: 'loginPulse 1.5s ease-in-out infinite',
|
|
73
77
|
'pulse-slow': 'loginPulse 2s ease-in-out infinite',
|
|
78
|
+
'row-fade-in': 'rowFadeIn 400ms ease both',
|
|
74
79
|
};
|
|
75
80
|
// Loading skeleton utilities — bundled gradient + animation in a single class.
|
|
76
81
|
export const loadingSkeletonsPlugin = plugin(({ addUtilities }) => {
|
|
@@ -87,3 +92,68 @@ export const loadingSkeletonsPlugin = plugin(({ addUtilities }) => {
|
|
|
87
92
|
},
|
|
88
93
|
});
|
|
89
94
|
});
|
|
95
|
+
// Composite UI pattern utilities.
|
|
96
|
+
export const patternsPlugin = plugin(({ addUtilities }) => {
|
|
97
|
+
addUtilities({
|
|
98
|
+
/* ── Dot-grid background ── */
|
|
99
|
+
'.dot-grid': {
|
|
100
|
+
backgroundImage: [
|
|
101
|
+
'linear-gradient(160deg, transparent 30%, white 55%)',
|
|
102
|
+
'radial-gradient(circle, color-mix(in srgb, var(--ii-primary) 13%, transparent) 1.5px, transparent 1.5px)',
|
|
103
|
+
].join(', '),
|
|
104
|
+
backgroundSize: '100% 100%, 24px 24px',
|
|
105
|
+
backgroundColor: 'var(--ii-gray-50, #f9fafb)',
|
|
106
|
+
},
|
|
107
|
+
/* ── Card border (diagonal gradient mask) ── */
|
|
108
|
+
'.card-border': {
|
|
109
|
+
position: 'relative',
|
|
110
|
+
background: 'linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 35%)',
|
|
111
|
+
},
|
|
112
|
+
'.card-border::before': {
|
|
113
|
+
content: '""',
|
|
114
|
+
position: 'absolute',
|
|
115
|
+
inset: '0',
|
|
116
|
+
borderRadius: 'inherit',
|
|
117
|
+
border: '1px solid var(--ii-gray-200, #e5e7eb)',
|
|
118
|
+
pointerEvents: 'none',
|
|
119
|
+
WebkitMaskImage: 'linear-gradient(160deg, black 20%, transparent 60%)',
|
|
120
|
+
maskImage: 'linear-gradient(160deg, black 20%, transparent 60%)',
|
|
121
|
+
},
|
|
122
|
+
/* ── Card border top-left (fading top + left borders) ── */
|
|
123
|
+
'.card-border-tl': {
|
|
124
|
+
position: 'relative',
|
|
125
|
+
background: 'linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 35%)',
|
|
126
|
+
},
|
|
127
|
+
'.card-border-tl::before, .card-border-tl::after': {
|
|
128
|
+
content: '""',
|
|
129
|
+
position: 'absolute',
|
|
130
|
+
inset: '0',
|
|
131
|
+
borderRadius: 'inherit',
|
|
132
|
+
pointerEvents: 'none',
|
|
133
|
+
},
|
|
134
|
+
'.card-border-tl::before': {
|
|
135
|
+
borderTop: '1px solid var(--ii-gray-200, #e5e7eb)',
|
|
136
|
+
WebkitMaskImage: 'linear-gradient(to right, black 0%, transparent 90%)',
|
|
137
|
+
maskImage: 'linear-gradient(to right, black 0%, transparent 90%)',
|
|
138
|
+
},
|
|
139
|
+
'.card-border-tl::after': {
|
|
140
|
+
borderLeft: '1px solid var(--ii-gray-200, #e5e7eb)',
|
|
141
|
+
WebkitMaskImage: 'linear-gradient(to bottom, black 0%, transparent 90%)',
|
|
142
|
+
maskImage: 'linear-gradient(to bottom, black 0%, transparent 90%)',
|
|
143
|
+
},
|
|
144
|
+
/* ── Row fade-in animation delays ── */
|
|
145
|
+
'.row-delay-1': { animationDelay: '50ms' },
|
|
146
|
+
'.row-delay-2': { animationDelay: '120ms' },
|
|
147
|
+
'.row-delay-3': { animationDelay: '190ms' },
|
|
148
|
+
'.row-delay-4': { animationDelay: '260ms' },
|
|
149
|
+
/* ── Scroll fade masks ── */
|
|
150
|
+
'.scroll-fade-bottom': {
|
|
151
|
+
WebkitMaskImage: 'linear-gradient(to bottom, black calc(100% - 48px), rgba(0, 0, 0, 0.1) 100%)',
|
|
152
|
+
maskImage: 'linear-gradient(to bottom, black calc(100% - 48px), rgba(0, 0, 0, 0.1) 100%)',
|
|
153
|
+
},
|
|
154
|
+
'.scroll-fade-vertical': {
|
|
155
|
+
WebkitMaskImage: 'linear-gradient(to bottom, transparent 0px, black 24px, black calc(100% - 48px), rgba(0, 0, 0, 0.1) 100%)',
|
|
156
|
+
maskImage: 'linear-gradient(to bottom, transparent 0px, black 24px, black calc(100% - 48px), rgba(0, 0, 0, 0.1) 100%)',
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
});
|
|
@@ -3,10 +3,10 @@ import { fontSize } from './typography';
|
|
|
3
3
|
import { spacing } from './spacing';
|
|
4
4
|
import { boxShadow } from './shadows';
|
|
5
5
|
import { borderRadius } from './radius';
|
|
6
|
-
import { animation, keyframes, loadingSkeletonsPlugin } from './animations';
|
|
6
|
+
import { animation, keyframes, loadingSkeletonsPlugin, patternsPlugin } from './animations';
|
|
7
7
|
import { zIndex } from './z-index';
|
|
8
8
|
export default {
|
|
9
|
-
plugins: [loadingSkeletonsPlugin],
|
|
9
|
+
plugins: [loadingSkeletonsPlugin, patternsPlugin],
|
|
10
10
|
theme: {
|
|
11
11
|
backgroundColor,
|
|
12
12
|
textColor,
|