{children}
diff --git a/packages/pillar-core/src/core/@timeline/_timeline.css b/packages/pillar-core/src/core/@timeline/_timeline.css
index c9786669..3de25bf0 100644
--- a/packages/pillar-core/src/core/@timeline/_timeline.css
+++ b/packages/pillar-core/src/core/@timeline/_timeline.css
@@ -15,7 +15,7 @@
.t-i_bullet {
width: 1em;
height: 1em;
- background: var(--bg-1);
+ background: var(--B1);
border: var(--c-9) 0.15em solid;
transform: translateX(-50%) translateX(-0.08em);
overflow: hidden;
diff --git a/packages/pillar-core/src/core/@timeline/index.tsx b/packages/pillar-core/src/core/@timeline/index.tsx
index 6ba69c50..2b49798f 100644
--- a/packages/pillar-core/src/core/@timeline/index.tsx
+++ b/packages/pillar-core/src/core/@timeline/index.tsx
@@ -22,9 +22,9 @@ export const TimelineItem = (props: TimelineItemProps) => {
)
}
-export const Timeline = ({ color = 'bg', size = 'sm', children, ...rest }: TimelineProps) => {
+export const Timeline = ({ color = 'b', size = 'sm', children, ...rest }: TimelineProps) => {
return (
-
+
{children}
)
diff --git a/packages/pillar-core/src/core/badge/index.tsx b/packages/pillar-core/src/core/badge/index.tsx
index 3b1750f4..1a829d0d 100644
--- a/packages/pillar-core/src/core/badge/index.tsx
+++ b/packages/pillar-core/src/core/badge/index.tsx
@@ -6,8 +6,8 @@ import type { ReactNode } from 'react'
import type { BadgeProps } from './badge.type'
export const Badge = forwardRef((props, ref) => {
- let { variant = 'solid', color = 'pri', as: Tag = 'div', type = 'numeric', size, corner, className, ...rest } = props
- const classNames = cx(`b-a shd u_${variant} u_center u_${color}`, {
+ let { variant = 'solid', color = 'p', as: Tag = 'div', type = 'numeric', size, corner, className, ...rest } = props
+ const classNames = cx(`b-a shd u_${variant} u_center C${color}`, {
'b-a_dot': type === 'dot',
[`u_f-${size}`]: size,
[`u_rad-${corner}`]: corner,
diff --git a/packages/pillar-core/src/core/blockquote/_blockquote.css b/packages/pillar-core/src/core/blockquote/_blockquote.css
index a8206a4f..4cef54d6 100644
--- a/packages/pillar-core/src/core/blockquote/_blockquote.css
+++ b/packages/pillar-core/src/core/blockquote/_blockquote.css
@@ -3,7 +3,7 @@
/* background-clip: ;
background-color: ; */
padding: 1.5em;
- background: padding-box var(--bg-3);
+ background: padding-box var(--B3);
position: relative;
/*
@@ -25,6 +25,6 @@
top: 0.25em;
& svg {
width: 1.25em;
- color: var(--opa-9);
+ color: var(--O9);
}
}
diff --git a/packages/pillar-core/src/core/blockquote/index.tsx b/packages/pillar-core/src/core/blockquote/index.tsx
index 988cdb0a..ddc8f9f9 100644
--- a/packages/pillar-core/src/core/blockquote/index.tsx
+++ b/packages/pillar-core/src/core/blockquote/index.tsx
@@ -4,22 +4,20 @@ import { cx } from '../cx'
import type { BlockquoteProps } from './blockquote.type'
import type { ForwardRefComponent } from '../../types/polymorphic.type'
-export const Blockquote = forwardRef(
- ({ children, icon, size, color = 'pri', corner, className, cite, ...rest }, ref) => {
- const classNames = cx(`b-l u_${color} l_f-xs u_sh-2xs`, {
- [`u_f-${size}`]: size,
- [`u_rad-${corner}`]: corner,
- [className!]: className,
- })
+export const Blockquote = forwardRef(({ children, icon, size, color = 'p', corner, className, cite, ...rest }, ref) => {
+ const classNames = cx(`b-l C${color} l_f-xs u_sh-2xs`, {
+ [`u_f-${size}`]: size,
+ [`u_rad-${corner}`]: corner,
+ [className!]: className,
+ })
- return (
-
- {icon && {icon} }
- {children}
-
- )
- }
-) as ForwardRefComponent<'blockquote', BlockquoteProps>
+ return (
+
+ {icon && {icon} }
+ {children}
+
+ )
+}) as ForwardRefComponent<'blockquote', BlockquoteProps>
Blockquote.displayName = 'Blockquote'
diff --git a/packages/pillar-core/src/core/button/_button.css b/packages/pillar-core/src/core/button/_button.css
index 95d4ac77..b5c4b5ad 100644
--- a/packages/pillar-core/src/core/button/_button.css
+++ b/packages/pillar-core/src/core/button/_button.css
@@ -16,10 +16,10 @@
transform: translateY(-1px) scale(1.01);
}
&:disabled {
- background: var(--bg-5);
- color: var(--bg-11);
+ background: var(--B5);
+ color: var(--B11);
pointer-events: none;
- border-color: var(--bg-5);
+ border-color: var(--B5);
}
& svg {
width: 1.1em;
@@ -71,11 +71,11 @@
}
.b-u-transparent {
- border: 1px solid var(--opa-6);
+ border: 1px solid var(--O6);
&:hover {
- background: var(--opa-6);
+ background: var(--O6);
}
&:focus-visible {
- outline: 2px dashed var(--opa-11);
+ outline: 2px dashed var(--O11);
}
}
diff --git a/packages/pillar-core/src/core/button/button.type.ts b/packages/pillar-core/src/core/button/button.type.ts
index 101ed63f..b6b7a1eb 100644
--- a/packages/pillar-core/src/core/button/button.type.ts
+++ b/packages/pillar-core/src/core/button/button.type.ts
@@ -22,7 +22,7 @@ interface BaseButton {
*
* @param {Object} props - The props for the button.
* @param {Size} [props.size='md'] - The size of the button.
- * @param {Color} [props.color="pri"] - The color of the button.
+ * @param {Color} [props.color="p"] - The color of the button.
* @param {Corner} [props.corner='xs'] - The corner of the button.
* @param {Variant} [props.variant='solid'] - The variant of the button.
* @param {ReactElement} [props.icon] - The icon of the button.
diff --git a/packages/pillar-core/src/core/button/index.tsx b/packages/pillar-core/src/core/button/index.tsx
index ea0731b0..3a17e436 100644
--- a/packages/pillar-core/src/core/button/index.tsx
+++ b/packages/pillar-core/src/core/button/index.tsx
@@ -14,7 +14,7 @@ export const Button = forwardRef(
(
{
children,
- color = 'pri',
+ color = 'p',
corner,
variant = 'solid',
size,
@@ -31,7 +31,7 @@ export const Button = forwardRef(
},
forwardedRef
) => {
- const classNames = cx(`b-u shd u_${variant} u_${color} u_center`, {
+ const classNames = cx(`b-u shd u_${variant} C${color} u_center`, {
'b-u-fluid': fluid,
[`u_t-${transform}`]: transform,
[`u_f-${size}`]: size,
@@ -43,7 +43,7 @@ export const Button = forwardRef(
const content = isLoading ? (
<>
-
+
{loadingText}
>
) : (
@@ -75,7 +75,7 @@ export const IconButton = forwardRef(
{ icon, title, corner, color = 'bg', size = 'md', variant = 'transparent', className, as: Tag = 'button', ...rest },
forwardedRef
) => {
- const classnames = cx(`b-u bu-i u_${variant} u_${color} u_center`, {
+ const classnames = cx(`b-u bu-i u_${variant} C${color} u_center`, {
[`u_f-${size}`]: size,
[`u_rad-${corner}`]: corner,
[className!]: className,
@@ -103,7 +103,7 @@ export const ButtonGroup = forwardRef(
children,
title,
corner = 'sharp',
- color = 'pri',
+ color = 'p',
size = 'md',
variant = 'transparent',
className,
@@ -112,7 +112,7 @@ export const ButtonGroup = forwardRef(
},
forwardedRef
) => {
- const classNames = cx(`bu-g b-u u_${color} u_center`, {
+ const classNames = cx(`bu-g b-u C${color} u_center`, {
[className!]: className,
[`u_f-${size}`]: size,
[`u_rad-${corner}`]: corner,
diff --git a/packages/pillar-core/src/core/chips/index.tsx b/packages/pillar-core/src/core/chips/index.tsx
index 94998cc5..59552da5 100644
--- a/packages/pillar-core/src/core/chips/index.tsx
+++ b/packages/pillar-core/src/core/chips/index.tsx
@@ -6,10 +6,10 @@ import type { ChipsProps } from './chips.type'
export const Chips = forwardRef(
(
- { size, color = 'pri', as: Tag = 'span', variant = 'solid', transform, corner, className, children, ...rest },
+ { size, color = 'p', as: Tag = 'span', variant = 'solid', transform, corner, className, children, ...rest },
ref
) => {
- const _className = cx(`c-i shd u_${variant} u_${color}`, {
+ const _className = cx(`c-i shd u_${variant} C${color}`, {
[`u_f-${size}`]: size,
[`u_t-${transform}`]: transform,
[`u_rad-${corner}`]: corner,
diff --git a/packages/pillar-core/src/core/code/index.tsx b/packages/pillar-core/src/core/code/index.tsx
index 82fbf0c9..f181a0a9 100644
--- a/packages/pillar-core/src/core/code/index.tsx
+++ b/packages/pillar-core/src/core/code/index.tsx
@@ -6,7 +6,7 @@ import type { CodeProps } from './code.type'
export const Code = forwardRef(
({ as: Tag = 'code', color = 'bg', size, corner, children, transform, className, ...rest }, ref) => {
- const classNames = cx(`c-o u_soft u_${color}`, {
+ const classNames = cx(`c-o u_soft C${color}`, {
[`u_f-${size}`]: size,
[`u_t-${transform}`]: transform,
[`u_rad-${corner}`]: corner,
diff --git a/packages/pillar-core/src/core/kbd/_kbd.css b/packages/pillar-core/src/core/kbd/_kbd.css
index de2b04cd..b69a3941 100644
--- a/packages/pillar-core/src/core/kbd/_kbd.css
+++ b/packages/pillar-core/src/core/kbd/_kbd.css
@@ -1,6 +1,6 @@
.k-d {
border-bottom: 0.15rem solid var(--c-8);
- /* box-shadow: inset 1px 1px 0.175em var(--c-6, var(--bg-6)); */
+ /* box-shadow: inset 1px 1px 0.175em var(--c-6, var(--B6)); */
/*
TODO: Because Of this line Repeated A lot Lets make a way to do it in its own class
and shared with all components need it
diff --git a/packages/pillar-core/src/core/kbd/index.tsx b/packages/pillar-core/src/core/kbd/index.tsx
index 508fb014..37ca2c30 100644
--- a/packages/pillar-core/src/core/kbd/index.tsx
+++ b/packages/pillar-core/src/core/kbd/index.tsx
@@ -6,7 +6,7 @@ import type { ForwardRefComponent } from '../../types/polymorphic.type'
export const Kbd = forwardRef(
({ title, variant = 'soft', color = 'bg', size, corner, className, transform, ...rest }, ref) => {
- const classNames = cx(`k-d shd u_${variant} u_${color}`, {
+ const classNames = cx(`k-d shd u_${variant} C${color}`, {
[`u_t-${transform}`]: transform,
[`u_f-${size}`]: size,
[`u_rad-${corner}`]: corner,
diff --git a/packages/pillar-core/src/core/progress/_progress.css b/packages/pillar-core/src/core/progress/_progress.css
index b6a189bb..40b05333 100644
--- a/packages/pillar-core/src/core/progress/_progress.css
+++ b/packages/pillar-core/src/core/progress/_progress.css
@@ -8,7 +8,7 @@
width: 100%;
height: 0.25em;
border-radius: 100rem;
- background: var(--opa-6);
+ background: var(--O6);
position: relative;
}
@@ -38,7 +38,7 @@
.pr-c_background {
font-size: 1em;
fill: none;
- stroke: var(--opa-6);
+ stroke: var(--O6);
stroke-width: clamp(2px, 0.375em, 10px);
}
@@ -57,7 +57,7 @@
font-size: 1.25rem;
text-anchor: middle;
dominant-baseline: central;
- fill: var(--bg-12);
+ fill: var(--B12);
font-weight: 500;
}
diff --git a/packages/pillar-core/src/core/progress/index.tsx b/packages/pillar-core/src/core/progress/index.tsx
index a63e955c..6291fc98 100644
--- a/packages/pillar-core/src/core/progress/index.tsx
+++ b/packages/pillar-core/src/core/progress/index.tsx
@@ -16,7 +16,7 @@ export const ProgressCircle = ({
max = 100,
value,
label,
- color = 'pri',
+ color = 'p',
...rest
}: ProgressCircleProps) => {
const progress = ((value - min) / (max - min)) * 100
@@ -27,7 +27,7 @@ export const ProgressCircle = ({
const dashOffset = circumference - (progress / 100) * circumference
return (
-
+
@@ -42,7 +42,7 @@ export const ProgressCircle = ({
export const ProgressBar = ({
showValue,
value,
- color = 'pri',
+ color = 'p',
size = 'md',
label,
min = 0,
@@ -52,7 +52,7 @@ export const ProgressBar = ({
const progress = ((MaxValue - min) / (max - min)) * 100
return (
-
+
@@ -71,8 +71,8 @@ export const ProgressBar = ({
)
}
-export const ProgressBarStackItem = ({ color = 'pri', value }: ProgressBarStackItemProps) => {
- return
+export const ProgressBarStackItem = ({ color = 'p', value }: ProgressBarStackItemProps) => {
+ return
}
export const ProgressBarStack = ({ size = 'sm', children }: ProgressBarStackProps) => {
@@ -87,7 +87,7 @@ export const ProgressBarStack = ({ size = 'sm', children }: ProgressBarStackProp
{children}
{_children?.map(({ children, color }, index) => (
-
+
{children}
))}
diff --git a/packages/pillar-core/src/core/rating/index.tsx b/packages/pillar-core/src/core/rating/index.tsx
index 3d872437..38af03db 100644
--- a/packages/pillar-core/src/core/rating/index.tsx
+++ b/packages/pillar-core/src/core/rating/index.tsx
@@ -16,7 +16,7 @@ export const Rating = ({
icon = 'star',
...props
}: RatingProps) => {
- const classNames = cx(`r-t u_${color} u_gap-xs u_center`, {
+ const classNames = cx(`r-t C${color} u_gap-xs u_center`, {
[`u_f-${size}`]: size,
})
return (
diff --git a/packages/pillar-core/src/core/separator/_separator.css b/packages/pillar-core/src/core/separator/_separator.css
index 80bd3931..644fc15f 100644
--- a/packages/pillar-core/src/core/separator/_separator.css
+++ b/packages/pillar-core/src/core/separator/_separator.css
@@ -11,7 +11,7 @@
}
.s-e_txt {
- background: var(--bg-1);
+ background: var(--B1);
font-size: max(0.75em, 0.75rem);
line-height: 1.1;
padding: 0 0.5em;
diff --git a/packages/pillar-core/src/core/separator/index.tsx b/packages/pillar-core/src/core/separator/index.tsx
index a87adc81..cedcfffe 100644
--- a/packages/pillar-core/src/core/separator/index.tsx
+++ b/packages/pillar-core/src/core/separator/index.tsx
@@ -19,7 +19,7 @@ export const Separator = forwardRef(
},
ref
) => {
- const classNames = cx(`s-e s-e-${direction} u_f-${thickness} f-l u_jus-${position} u_it-center u_${color}`, {
+ const classNames = cx(`s-e s-e-${direction} u_f-${thickness} f-l u_jus-${position} u_it-center C${color}`, {
[`u_rad-${corner}`]: corner,
'l_fl-column': direction === 'vertical',
[className!]: className,
diff --git a/packages/pillar-core/src/core/skeleton/_skeleton.css b/packages/pillar-core/src/core/skeleton/_skeleton.css
index 63b14a9c..03dd36f2 100644
--- a/packages/pillar-core/src/core/skeleton/_skeleton.css
+++ b/packages/pillar-core/src/core/skeleton/_skeleton.css
@@ -1,11 +1,11 @@
.s-k {
- background: var(--bg-7);
+ background: var(--B7);
position: relative;
overflow: hidden;
&::before {
content: '';
- background: linear-gradient(to right, var(--opa-1), var(--opa-4), var(--opa-2));
+ background: linear-gradient(to right, var(--O1), var(--O4), var(--O2));
width: 40%;
height: 100%;
position: absolute;
diff --git a/packages/pillar-core/src/core/spinner/index.tsx b/packages/pillar-core/src/core/spinner/index.tsx
index 4ba07b56..2aa9b92d 100644
--- a/packages/pillar-core/src/core/spinner/index.tsx
+++ b/packages/pillar-core/src/core/spinner/index.tsx
@@ -3,16 +3,9 @@ import { cx } from '../cx'
import type { CSSProperties } from 'react'
import type { SpinnerProps } from './spinner.type'
-export const Spinner = ({
- color = 'pri',
- size,
- thickness = '2px',
- invert = false,
- className,
- ...rest
-}: SpinnerProps) => {
- const classnames = cx(`s-p u_${color}`, {
- [`u_${color}`]: color,
+export const Spinner = ({ color = 'p', size, thickness = '2px', invert = false, className, ...rest }: SpinnerProps) => {
+ const classnames = cx(`s-p C${color}`, {
+ [`C${color}`]: color,
['s-p-invert']: invert,
[`u_f-${size}`]: size,
[className!]: className,
diff --git a/packages/pillar-core/src/core/table/index.tsx b/packages/pillar-core/src/core/table/index.tsx
index 6ac93259..1efa875b 100644
--- a/packages/pillar-core/src/core/table/index.tsx
+++ b/packages/pillar-core/src/core/table/index.tsx
@@ -47,7 +47,7 @@ export const Table = ({
return (
{
return (
-
+
{children}
)
diff --git a/packages/pillar-core/src/css/generics/_form.css b/packages/pillar-core/src/css/generics/_form.css
index a3758c23..c9809cf2 100644
--- a/packages/pillar-core/src/css/generics/_form.css
+++ b/packages/pillar-core/src/css/generics/_form.css
@@ -24,12 +24,12 @@ a {
cursor: pointer;
&:focus-visible {
- outline: 2px dashed var(--pri-9);
+ outline: 2px dashed var(--P9);
}
}
a {
- color: var(--pri-11);
+ color: var(--P11);
}
.shd,
@@ -47,6 +47,6 @@ code {
}
code {
- background-color: var(--bg-6);
+ background-color: var(--B6);
border-radius: 0.25rem;
}
diff --git a/packages/pillar-core/src/css/generics/_reset.css b/packages/pillar-core/src/css/generics/_reset.css
index c93a3f6c..b5311fa1 100644
--- a/packages/pillar-core/src/css/generics/_reset.css
+++ b/packages/pillar-core/src/css/generics/_reset.css
@@ -42,10 +42,10 @@ picture {
/* Inherit fonts for inputs and buttons */
body {
- color: var(--bg-12);
+ color: var(--B12);
/* // Please Make Sure If you want to update This Background color you need to update .storybook/preview.js */
- background: var(--bg-1);
+ background: var(--B1);
-webkit-font-smoothing: antialiased;
font-family: var(--custom-body-font, var(--body-font));
font-weight: 400;
diff --git a/packages/pillar-core/src/css/layout/_flow.css b/packages/pillar-core/src/css/layout/_flow.css
index 0f083bc0..16042ca0 100644
--- a/packages/pillar-core/src/css/layout/_flow.css
+++ b/packages/pillar-core/src/css/layout/_flow.css
@@ -1,3 +1,5 @@
+/* Fl */
+
.l_f-3xs > * + * {
margin-top: var(--s-3xs);
}
diff --git a/packages/pillar-core/src/css/themes.css b/packages/pillar-core/src/css/themes.css
index 2da07265..347e833e 100644
--- a/packages/pillar-core/src/css/themes.css
+++ b/packages/pillar-core/src/css/themes.css
@@ -11,109 +11,109 @@
*/
/* removed color from the old colors list: 1-2-4 and reordering them again */
- --pri-1: var(--pri-l-1, #fdfdfe);
- --pri-2: var(--pri-l-2, #f7f9ff);
- --pri-3: var(--pri-l-3, #edf2fe);
- --pri-4: var(--pri-l-4, #e1e9ff);
- --pri-5: var(--pri-l-5, #d2deff);
- --pri-6: var(--pri-l-6, #c1d0ff);
- --pri-7: var(--pri-l-7, #abbdf9);
- --pri-8: var(--pri-l-8, #8da4ef);
- --pri-9: var(--pri-l-9, #3e63dd);
- --pri-10: var(--pri-l-10, #3358d4);
- --pri-11: var(--pri-l-11, #3a5bc7);
- --pri-12: var(--pri-l-12, #1f2d5c);
+ --P1: var(--Pl-1, #fdfdfe);
+ --P2: var(--Pl-2, #f7f9ff);
+ --P3: var(--Pl-3, #edf2fe);
+ --P4: var(--Pl-4, #e1e9ff);
+ --P5: var(--Pl-5, #d2deff);
+ --P6: var(--Pl-6, #c1d0ff);
+ --P7: var(--Pl-7, #abbdf9);
+ --P8: var(--Pl-8, #8da4ef);
+ --P9: var(--Pl-9, #3e63dd);
+ --P10: var(--Pl-10, #3358d4);
+ --P11: var(--Pl-11, #3a5bc7);
+ --P12: var(--Pl-12, #1f2d5c);
- --sec-1: var(--sec-l-1, #fffcfe);
- --sec-2: var(--sec-l-2, #fef7fb);
- --sec-3: var(--sec-l-3, #fee9f5);
- --sec-4: var(--sec-l-4, #fbdcef);
- --sec-5: var(--sec-l-5, #f6cee7);
- --sec-6: var(--sec-l-6, #efbfdd);
- --sec-7: var(--sec-l-7, #e7acd0);
- --sec-8: var(--sec-l-8, #dd93c2);
- --sec-9: var(--sec-l-9, #d6409f);
- --sec-10: var(--sec-l-10, #cf3897);
- --sec-11: var(--sec-l-11, #c2298a);
- --sec-12: var(--sec-l-12, #651249);
+ --Se1: var(--Sel-1, #fffcfe);
+ --Se2: var(--Sel-2, #fef7fb);
+ --Se3: var(--Sel-3, #fee9f5);
+ --Se4: var(--Sel-4, #fbdcef);
+ --Se5: var(--Sel-5, #f6cee7);
+ --Se6: var(--Sel-6, #efbfdd);
+ --Se7: var(--Sel-7, #e7acd0);
+ --Se8: var(--Sel-8, #dd93c2);
+ --Se9: var(--Sel-9, #d6409f);
+ --Se10: var(--Sel-10, #cf3897);
+ --Se11: var(--Sel-11, #c2298a);
+ --Se12: var(--Sel-12, #651249);
- --opa-1: var(--opa-light-1, #00000003);
- --opa-2: var(--opa-light-2, #00000007);
- --opa-3: var(--opa-light-3, #0000000c);
- --opa-4: var(--opa-light-4, #00000012);
- --opa-5: var(--opa-light-5, #00000016);
- --opa-6: var(--opa-light-6, #0000001c);
- --opa-7: var(--opa-light-7, #00000023);
- --opa-8: var(--opa-light-8, #00000038);
- --opa-9: var(--opa-light-9, #0000006f);
- --opa-10: var(--opa-light-10, #0000007a);
- --opa-11: var(--opa-light-11, #0000008f);
- --opa-12: var(--opa-light-12, #000000e3);
+ --O1: var(--Ol-1, #00000003);
+ --O2: var(--Ol-2, #00000007);
+ --O3: var(--Ol-3, #0000000c);
+ --O4: var(--Ol-4, #00000012);
+ --O5: var(--Ol-5, #00000016);
+ --O6: var(--Ol-6, #0000001c);
+ --O7: var(--Ol-7, #00000023);
+ --O8: var(--Ol-8, #00000038);
+ --O9: var(--Ol-9, #0000006f);
+ --O10: var(--Ol-10, #0000007a);
+ --O11: var(--Ol-11, #0000008f);
+ --O12: var(--Ol-12, #000000e3);
- --bg-1: var(--bg-l-1, #fcfcfd);
- --bg-2: var(--bg-l-2, #f9f9fb);
- --bg-3: var(--bg-l-3, #f0f0f3);
- --bg-4: var(--bg-l-4, #e8e8ec);
- --bg-5: var(--bg-l-5, #e0e1e6);
- --bg-6: var(--bg-l-6, #d9d9e0);
- --bg-7: var(--bg-l-7, #cdced6);
- --bg-8: var(--bg-l-8, #b9bbc6);
- --bg-9: var(--bg-l-9, #8b8d98);
- --bg-10: var(--bg-l-10, #80838d);
- --bg-11: var(--bg-l-11, #60646c);
- --bg-12: var(--bg-l-12, #1c2024);
+ --B1: var(--Bl-1, #fcfcfd);
+ --B2: var(--Bl-2, #f9f9fb);
+ --B3: var(--Bl-3, #f0f0f3);
+ --B4: var(--Bl-4, #e8e8ec);
+ --B5: var(--Bl-5, #e0e1e6);
+ --B6: var(--Bl-6, #d9d9e0);
+ --B7: var(--Bl-7, #cdced6);
+ --B8: var(--Bl-8, #b9bbc6);
+ --B9: var(--Bl-9, #8b8d98);
+ --B10: var(--Bl-10, #80838d);
+ --B11: var(--Bl-11, #60646c);
+ --B12: var(--Bl-12, #1c2024);
- --dan-1: var(--dan-l-1, #fffcfc);
- --dan-2: var(--dan-l-2, #fff7f7);
- --dan-3: var(--dan-l-3, #feebec);
- --dan-4: var(--dan-l-4, #ffdbdc);
- --dan-5: var(--dan-l-5, #ffcdce);
- --dan-6: var(--dan-l-6, #fdbdbe);
- --dan-7: var(--dan-l-7, #f4a9aa);
- --dan-8: var(--dan-l-8, #eb8e90);
- --dan-9: var(--dan-l-9, #e5484d);
- --dan-10: var(--dan-l-10, #dc3e42);
- --dan-11: var(--dan-l-11, #ce2c31);
- --dan-12: var(--dan-l-12, #641723);
+ --D1: var(--Dl-1, #fffcfc);
+ --D2: var(--Dl-2, #fff7f7);
+ --D3: var(--Dl-3, #feebec);
+ --D4: var(--Dl-4, #ffdbdc);
+ --D5: var(--Dl-5, #ffcdce);
+ --D6: var(--Dl-6, #fdbdbe);
+ --D7: var(--Dl-7, #f4a9aa);
+ --D8: var(--Dl-8, #eb8e90);
+ --D9: var(--Dl-9, #e5484d);
+ --D10: var(--Dl-10, #dc3e42);
+ --D11: var(--Dl-11, #ce2c31);
+ --D12: var(--Dl-12, #641723);
- --war-1: var(--war-l-1, #fefcfb);
- --war-2: var(--war-l-2, #fff7ed);
- --war-3: var(--war-l-3, #ffefd6);
- --war-4: var(--war-l-4, #ffdfb5);
- --war-5: var(--war-l-5, #ffd19a);
- --war-6: var(--war-l-6, #ffc182);
- --war-7: var(--war-l-7, #f5ae73);
- --war-8: var(--war-l-8, #ec9455);
- --war-9: var(--war-l-9, #f76b15);
- --war-10: var(--war-l-10, #ef5f00);
- --war-11: var(--war-l-11, #cc4e00);
- --war-12: var(--war-l-12, #582d1d);
+ --W1: var(--Wl-1, #fefcfb);
+ --W2: var(--Wl-2, #fff7ed);
+ --W3: var(--Wl-3, #ffefd6);
+ --W4: var(--Wl-4, #ffdfb5);
+ --W5: var(--Wl-5, #ffd19a);
+ --W6: var(--Wl-6, #ffc182);
+ --W7: var(--Wl-7, #f5ae73);
+ --W8: var(--Wl-8, #ec9455);
+ --W9: var(--Wl-9, #f76b15);
+ --W10: var(--Wl-10, #ef5f00);
+ --W11: var(--Wl-11, #cc4e00);
+ --W12: var(--Wl-12, #582d1d);
- --suc-1: var(--suc-l-1, #fbfefc);
- --suc-2: var(--suc-l-2, #f4fbf6);
- --suc-3: var(--suc-l-3, #e6f6eb);
- --suc-4: var(--suc-l-4, #d6f1df);
- --suc-5: var(--suc-l-5, #c4e8d1);
- --suc-6: var(--suc-l-6, #adddc0);
- --suc-7: var(--suc-l-7, #8eceaa);
- --suc-8: var(--suc-l-8, #5bb98b);
- --suc-9: var(--suc-l-9, #30a46c);
- --suc-10: var(--suc-l-10, #2b9a66);
- --suc-11: var(--suc-l-11, #218358);
- --suc-12: var(--suc-l-12, #193b2d);
+ --S1: var(--Sl-1, #fbfefc);
+ --S2: var(--Sl-2, #f4fbf6);
+ --S3: var(--Sl-3, #e6f6eb);
+ --S4: var(--Sl-4, #d6f1df);
+ --S5: var(--Sl-5, #c4e8d1);
+ --S6: var(--Sl-6, #adddc0);
+ --S7: var(--Sl-7, #8eceaa);
+ --S8: var(--Sl-8, #5bb98b);
+ --S9: var(--Sl-9, #30a46c);
+ --S10: var(--Sl-10, #2b9a66);
+ --S11: var(--Sl-11, #218358);
+ --S12: var(--Sl-12, #193b2d);
- --inf-1: var(--inf-l-1, #fbfdff);
- --inf-2: var(--inf-l-2, #f4faff);
- --inf-3: var(--inf-l-3, #e6f4fe);
- --inf-4: var(--inf-l-4, #d5efff);
- --inf-5: var(--inf-l-5, #c2e5ff);
- --inf-6: var(--inf-l-6, #acd8fc);
- --inf-7: var(--inf-l-7, #8ec8f6);
- --inf-8: var(--inf-l-8, #5eb1ef);
- --inf-9: var(--inf-l-9, #0090ff);
- --inf-10: var(--inf-l-10, #0588f0);
- --inf-11: var(--inf-l-11, #0d74ce);
- --inf-12: var(--inf-l-12, #113264);
+ --I1: var(--Il-1, #fbfdff);
+ --I2: var(--Il-2, #f4faff);
+ --I3: var(--Il-3, #e6f4fe);
+ --I4: var(--Il-4, #d5efff);
+ --I5: var(--Il-5, #c2e5ff);
+ --I6: var(--Il-6, #acd8fc);
+ --I7: var(--Il-7, #8ec8f6);
+ --I8: var(--Il-8, #5eb1ef);
+ --I9: var(--Il-9, #0090ff);
+ --I10: var(--Il-10, #0588f0);
+ --I11: var(--Il-11, #0d74ce);
+ --I12: var(--Il-12, #113264);
/*
------------------------------------------------------------------------------------------------------
@@ -172,107 +172,107 @@
.dark {
color-scheme: dark;
- --sec-1: var(--sec-d-1, #191117);
- --sec-2: var(--sec-d-2, #21121d);
- --sec-3: var(--sec-d-3, #37172f);
- --sec-4: var(--sec-d-4, #4b143d);
- --sec-5: var(--sec-d-5, #591c47);
- --sec-6: var(--sec-d-6, #692955);
- --sec-7: var(--sec-d-7, #833869);
- --sec-8: var(--sec-d-8, #a84885);
- --sec-9: var(--sec-d-9, #d6409f);
- --sec-10: var(--sec-d-10, #de51a8);
- --sec-11: var(--sec-d-11, #ff8dcc);
- --sec-12: var(--sec-d-12, #fdd1ea);
+ --Se1: var(--Sed-1, #191117);
+ --Se2: var(--Sed-2, #21121d);
+ --Se3: var(--Sed-3, #37172f);
+ --Se4: var(--Sed-4, #4b143d);
+ --Se5: var(--Sed-5, #591c47);
+ --Se6: var(--Sed-6, #692955);
+ --Se7: var(--Sed-7, #833869);
+ --Se8: var(--Sed-8, #a84885);
+ --Se9: var(--Sed-9, #d6409f);
+ --Se10: var(--Sed-10, #de51a8);
+ --Se11: var(--Sed-11, #ff8dcc);
+ --Se12: var(--Sed-12, #fdd1ea);
- --bg-1: var(--bg-d-1, #111113);
- --bg-2: var(--bg-d-2, #18191b);
- --bg-3: var(--bg-d-3, #212225);
- --bg-4: var(--bg-d-4, #272a2d);
- --bg-5: var(--bg-d-5, #2e3135);
- --bg-6: var(--bg-d-6, #363a3f);
- --bg-7: var(--bg-d-7, #43484e);
- --bg-8: var(--bg-d-8, #5a6169);
- --bg-9: var(--bg-d-9, #696e77);
- --bg-10: var(--bg-d-10, #777b84);
- --bg-11: var(--bg-d-11, #b0b4ba);
- --bg-12: var(--bg-d-12, #edeef0);
+ --B1: var(--Bd-1, #111113);
+ --B2: var(--Bd-2, #18191b);
+ --B3: var(--Bd-3, #212225);
+ --B4: var(--Bd-4, #272a2d);
+ --B5: var(--Bd-5, #2e3135);
+ --B6: var(--Bd-6, #363a3f);
+ --B7: var(--Bd-7, #43484e);
+ --B8: var(--Bd-8, #5a6169);
+ --B9: var(--Bd-9, #696e77);
+ --B10: var(--Bd-10, #777b84);
+ --B11: var(--Bd-11, #b0b4ba);
+ --B12: var(--Bd-12, #edeef0);
- --opa-1: var(--opa-d-1, #ffffff0d);
- --opa-2: var(--opa-d-2, #ffffff1a);
- --opa-3: var(--opa-d-3, #ffffff26);
- --opa-4: var(--opa-d-4, #ffffff33);
- --opa-5: var(--opa-d-5, #ffffff4d);
- --opa-6: var(--opa-d-6, #ffffff66);
- --opa-7: var(--opa-d-7, #ffffff80);
- --opa-8: var(--opa-d-8, #ffffff99);
- --opa-9: var(--opa-d-9, #ffffffb3);
- --opa-10: var(--opa-d-10, #ffffffcc);
- --opa-11: var(--opa-d-11, #ffffffe6);
- --opa-12: var(--opa-d-12, #fffffff2);
+ --O1: var(--Od-1, #ffffff0d);
+ --O2: var(--Od-2, #ffffff1a);
+ --O3: var(--Od-3, #ffffff26);
+ --O4: var(--Od-4, #ffffff33);
+ --O5: var(--Od-5, #ffffff4d);
+ --O6: var(--Od-6, #ffffff66);
+ --O7: var(--Od-7, #ffffff80);
+ --O8: var(--Od-8, #ffffff99);
+ --O9: var(--Od-9, #ffffffb3);
+ --O10: var(--Od-10, #ffffffcc);
+ --O11: var(--Od-11, #ffffffe6);
+ --O12: var(--Od-12, #fffffff2);
- --dan-1: var(--dan-d-1, #191111);
- --dan-2: var(--dan-d-2, #201314);
- --dan-3: var(--dan-d-3, #3b1219);
- --dan-4: var(--dan-d-4, #500f1c);
- --dan-5: var(--dan-d-5, #611623);
- --dan-6: var(--dan-d-6, #72232d);
- --dan-7: var(--dan-d-7, #8c333a);
- --dan-8: var(--dan-d-8, #b54548);
- --dan-9: var(--dan-d-9, #e5484d);
- --dan-10: var(--dan-d-10, #ec5d5e);
- --dan-11: var(--dan-d-11, #ff9592);
- --dan-12: var(--dan-d-12, #ffd1d9);
+ --D1: var(--Dd-1, #191111);
+ --D2: var(--Dd-2, #201314);
+ --D3: var(--Dd-3, #3b1219);
+ --D4: var(--Dd-4, #500f1c);
+ --D5: var(--Dd-5, #611623);
+ --D6: var(--Dd-6, #72232d);
+ --D7: var(--Dd-7, #8c333a);
+ --D8: var(--Dd-8, #b54548);
+ --D9: var(--Dd-9, #e5484d);
+ --D10: var(--Dd-10, #ec5d5e);
+ --D11: var(--Dd-11, #ff9592);
+ --D12: var(--Dd-12, #ffd1d9);
- --pri-1: var(--pri-d-1, #11131f);
- --pri-2: var(--pri-d-2, #141726);
- --pri-3: var(--pri-d-3, #182449);
- --pri-4: var(--pri-d-4, #1d2e62);
- --pri-5: var(--pri-d-5, #253974);
- --pri-6: var(--pri-d-6, #304384);
- --pri-7: var(--pri-d-7, #3a4f97);
- --pri-8: var(--pri-d-8, #435db1);
- --pri-9: var(--pri-d-9, #3e63dd);
- --pri-10: var(--pri-d-10, #5472e4);
- --pri-11: var(--pri-d-11, #9eb1ff);
- --pri-12: var(--pri-d-12, #d6e1ff);
+ --P1: var(--Pd-1, #11131f);
+ --P2: var(--Pd-2, #141726);
+ --P3: var(--Pd-3, #182449);
+ --P4: var(--Pd-4, #1d2e62);
+ --P5: var(--Pd-5, #253974);
+ --P6: var(--Pd-6, #304384);
+ --P7: var(--Pd-7, #3a4f97);
+ --P8: var(--Pd-8, #435db1);
+ --P9: var(--Pd-9, #3e63dd);
+ --P10: var(--Pd-10, #5472e4);
+ --P11: var(--Pd-11, #9eb1ff);
+ --P12: var(--Pd-12, #d6e1ff);
- --suc-1: var(--suc-d-1, #0e1512);
- --suc-2: var(--suc-d-2, #121b17);
- --suc-3: var(--suc-d-3, #132d21);
- --suc-4: var(--suc-d-4, #113b29);
- --suc-5: var(--suc-d-5, #174933);
- --suc-6: var(--suc-d-6, #20573e);
- --suc-7: var(--suc-d-7, #28684a);
- --suc-8: var(--suc-d-8, #2f7c57);
- --suc-9: var(--suc-d-9, #30a46c);
- --suc-10: var(--suc-d-10, #33b074);
- --suc-11: var(--suc-d-11, #3dd68c);
- --suc-12: var(--suc-d-12, #b1f1cb);
+ --S1: var(--Sd-1, #0e1512);
+ --S2: var(--Sd-2, #121b17);
+ --S3: var(--Sd-3, #132d21);
+ --S4: var(--Sd-4, #113b29);
+ --S5: var(--Sd-5, #174933);
+ --S6: var(--Sd-6, #20573e);
+ --S7: var(--Sd-7, #28684a);
+ --S8: var(--Sd-8, #2f7c57);
+ --S9: var(--Sd-9, #30a46c);
+ --S10: var(--Sd-10, #33b074);
+ --S11: var(--Sd-11, #3dd68c);
+ --S12: var(--Sd-12, #b1f1cb);
- --war-1: var(--war-d-1, #17120e);
- --war-2: var(--war-d-2, #1e160f);
- --war-3: var(--war-d-3, #331e0b);
- --war-4: var(--war-d-4, #462100);
- --war-5: var(--war-d-5, #562800);
- --war-6: var(--war-d-6, #66350c);
- --war-7: var(--war-d-7, #7e451d);
- --war-8: var(--war-d-8, #a35829);
- --war-9: var(--war-d-9, #f76b15);
- --war-10: var(--war-d-10, #ff801f);
- --war-11: var(--war-d-11, #ffa057);
- --war-12: var(--war-d-12, #ffe0c2);
+ --W1: var(--Wd-1, #17120e);
+ --W2: var(--Wd-2, #1e160f);
+ --W3: var(--Wd-3, #331e0b);
+ --W4: var(--Wd-4, #462100);
+ --W5: var(--Wd-5, #562800);
+ --W6: var(--Wd-6, #66350c);
+ --W7: var(--Wd-7, #7e451d);
+ --W8: var(--Wd-8, #a35829);
+ --W9: var(--Wd-9, #f76b15);
+ --W10: var(--Wd-10, #ff801f);
+ --W11: var(--Wd-11, #ffa057);
+ --W12: var(--Wd-12, #ffe0c2);
- --inf-1: var(--inf-d-1, #0d1520);
- --inf-2: var(--inf-d-2, #111927);
- --inf-3: var(--inf-d-3, #0d2847);
- --inf-4: var(--inf-d-4, #003362);
- --inf-5: var(--inf-d-5, #004074);
- --inf-6: var(--inf-d-6, #104d87);
- --inf-7: var(--inf-d-7, #205d9e);
- --inf-8: var(--inf-d-8, #2870bd);
- --inf-9: var(--inf-d-9, #0090ff);
- --inf-10: var(--inf-d-10, #3b9eff);
- --inf-11: var(--inf-d-11, #70b8ff);
- --inf-12: var(--inf-d-12, #c2e6ff);
+ --I1: var(--Id-1, #0d1520);
+ --I2: var(--Id-2, #111927);
+ --I3: var(--Id-3, #0d2847);
+ --I4: var(--Id-4, #003362);
+ --I5: var(--Id-5, #004074);
+ --I6: var(--Id-6, #104d87);
+ --I7: var(--Id-7, #205d9e);
+ --I8: var(--Id-8, #2870bd);
+ --I9: var(--Id-9, #0090ff);
+ --I10: var(--Id-10, #3b9eff);
+ --I11: var(--Id-11, #70b8ff);
+ --I12: var(--Id-12, #c2e6ff);
}
diff --git a/packages/pillar-core/src/css/utilities/_alignment.css b/packages/pillar-core/src/css/utilities/_alignment.css
index 6b728f9e..79659c8d 100644
--- a/packages/pillar-core/src/css/utilities/_alignment.css
+++ b/packages/pillar-core/src/css/utilities/_alignment.css
@@ -1,3 +1,5 @@
+/* Alignment: Ajc, Aji,Aai, Aac */
+
/*
1- TO Support in flex and in grid because safari does not support end in flex
*/
diff --git a/packages/pillar-core/src/css/utilities/_border.css b/packages/pillar-core/src/css/utilities/_border.css
index d313e7d7..74e77e8f 100644
--- a/packages/pillar-core/src/css/utilities/_border.css
+++ b/packages/pillar-core/src/css/utilities/_border.css
@@ -1,3 +1,5 @@
+/* border: B */
+
.u_border {
- border: 1px solid var(--bg-6);
+ border: 1px solid var(--B6);
}
diff --git a/packages/pillar-core/src/css/utilities/_color.css b/packages/pillar-core/src/css/utilities/_color.css
index bbd7696e..1fe390bd 100644
--- a/packages/pillar-core/src/css/utilities/_color.css
+++ b/packages/pillar-core/src/css/utilities/_color.css
@@ -1,104 +1,106 @@
-.u_pri {
- --c-1: var(--pri-1);
- --c-2: var(--pri-2);
- --c-3: var(--pri-3);
- --c-4: var(--pri-4);
- --c-5: var(--pri-5);
- --c-6: var(--pri-6);
- --c-7: var(--pri-7);
- --c-8: var(--pri-8);
- --c-9: var(--pri-9);
- --c-10: var(--pri-10);
- --c-11: var(--pri-11);
- --c-12: var(--pri-12);
+/* Color: Cp, Cse, Cw, Cs, Cd, Ci, Cb */
+
+.Cp {
+ --c-1: var(--P1);
+ --c-2: var(--P2);
+ --c-3: var(--P3);
+ --c-4: var(--P4);
+ --c-5: var(--P5);
+ --c-6: var(--P6);
+ --c-7: var(--P7);
+ --c-8: var(--P8);
+ --c-9: var(--P9);
+ --c-10: var(--P10);
+ --c-11: var(--P11);
+ --c-12: var(--P12);
}
-.u_sec {
- --c-1: var(--sec-1);
- --c-2: var(--sec-2);
- --c-3: var(--sec-3);
- --c-4: var(--sec-4);
- --c-5: var(--sec-5);
- --c-6: var(--sec-6);
- --c-7: var(--sec-7);
- --c-8: var(--sec-8);
- --c-9: var(--sec-9);
- --c-10: var(--sec-10);
- --c-11: var(--sec-11);
- --c-12: var(--sec-12);
+.Cse {
+ --c-1: var(--Se1);
+ --c-2: var(--Se2);
+ --c-3: var(--Se3);
+ --c-4: var(--Se4);
+ --c-5: var(--Se5);
+ --c-6: var(--Se6);
+ --c-7: var(--Se7);
+ --c-8: var(--Se8);
+ --c-9: var(--Se9);
+ --c-10: var(--Se10);
+ --c-11: var(--Se11);
+ --c-12: var(--Se12);
}
-.u_war {
- --c-1: var(--war-1);
- --c-2: var(--war-2);
- --c-3: var(--war-3);
- --c-4: var(--war-4);
- --c-5: var(--war-5);
- --c-6: var(--war-6);
- --c-7: var(--war-7);
- --c-8: var(--war-8);
- --c-9: var(--war-9);
- --c-10: var(--war-10);
- --c-11: var(--war-11);
- --c-12: var(--war-12);
+.Cw {
+ --c-1: var(--W1);
+ --c-2: var(--W2);
+ --c-3: var(--W3);
+ --c-4: var(--W4);
+ --c-5: var(--W5);
+ --c-6: var(--W6);
+ --c-7: var(--W7);
+ --c-8: var(--W8);
+ --c-9: var(--W9);
+ --c-10: var(--W10);
+ --c-11: var(--W11);
+ --c-12: var(--W12);
}
-.u_suc {
- --c-1: var(--suc-1);
- --c-2: var(--suc-2);
- --c-3: var(--suc-3);
- --c-4: var(--suc-4);
- --c-5: var(--suc-5);
- --c-6: var(--suc-6);
- --c-7: var(--suc-7);
- --c-8: var(--suc-8);
- --c-9: var(--suc-9);
- --c-10: var(--suc-10);
- --c-11: var(--suc-11);
- --c-12: var(--suc-12);
+.Cs {
+ --c-1: var(--S1);
+ --c-2: var(--S2);
+ --c-3: var(--S3);
+ --c-4: var(--S4);
+ --c-5: var(--S5);
+ --c-6: var(--S6);
+ --c-7: var(--S7);
+ --c-8: var(--S8);
+ --c-9: var(--S9);
+ --c-10: var(--S10);
+ --c-11: var(--S11);
+ --c-12: var(--S12);
}
-.u_dan {
- --c-1: var(--dan-1);
- --c-2: var(--dan-2);
- --c-3: var(--dan-3);
- --c-4: var(--dan-4);
- --c-5: var(--dan-5);
- --c-6: var(--dan-6);
- --c-7: var(--dan-7);
- --c-8: var(--dan-8);
- --c-9: var(--dan-9);
- --c-10: var(--dan-10);
- --c-11: var(--dan-11);
- --c-12: var(--dan-12);
+.Cd {
+ --c-1: var(--D1);
+ --c-2: var(--D2);
+ --c-3: var(--D3);
+ --c-4: var(--D4);
+ --c-5: var(--D5);
+ --c-6: var(--D6);
+ --c-7: var(--D7);
+ --c-8: var(--D8);
+ --c-9: var(--D9);
+ --c-10: var(--D10);
+ --c-11: var(--D11);
+ --c-12: var(--D12);
}
-.u_inf {
- --c-1: var(--inf-1);
- --c-2: var(--inf-2);
- --c-3: var(--inf-3);
- --c-4: var(--inf-4);
- --c-5: var(--inf-5);
- --c-6: var(--inf-6);
- --c-7: var(--inf-7);
- --c-8: var(--inf-8);
- --c-9: var(--inf-9);
- --c-10: var(--inf-10);
- --c-11: var(--inf-11);
- --c-12: var(--inf-12);
+.Ci {
+ --c-1: var(--I1);
+ --c-2: var(--I2);
+ --c-3: var(--I3);
+ --c-4: var(--I4);
+ --c-5: var(--I5);
+ --c-6: var(--I6);
+ --c-7: var(--I7);
+ --c-8: var(--I8);
+ --c-9: var(--I9);
+ --c-10: var(--I10);
+ --c-11: var(--I11);
+ --c-12: var(--I12);
}
-.u_bg {
- --c-1: var(--bg-1);
- --c-2: var(--bg-2);
- --c-3: var(--bg-3);
- --c-4: var(--bg-4);
- --c-5: var(--bg-5);
- --c-6: var(--bg-6);
- --c-7: var(--bg-7);
- --c-8: var(--bg-8);
- --c-9: var(--bg-9);
- --c-10: var(--bg-10);
- --c-11: var(--bg-11);
- --c-12: var(--bg-12);
+.Cb {
+ --c-1: var(--B1);
+ --c-2: var(--B2);
+ --c-3: var(--B3);
+ --c-4: var(--B4);
+ --c-5: var(--B5);
+ --c-6: var(--B6);
+ --c-7: var(--B7);
+ --c-8: var(--B8);
+ --c-9: var(--B9);
+ --c-10: var(--B10);
+ --c-11: var(--B11);
+ --c-12: var(--B12);
}
diff --git a/packages/pillar-core/src/css/utilities/_flex.css b/packages/pillar-core/src/css/utilities/_flex.css
index b03d6cf9..3c7beb12 100644
--- a/packages/pillar-core/src/css/utilities/_flex.css
+++ b/packages/pillar-core/src/css/utilities/_flex.css
@@ -1,3 +1,5 @@
+/* Flex: C, B */
+
.u_center,
.u_between {
display: var(--fx, flex);
diff --git a/packages/pillar-core/src/css/utilities/_fonts.css b/packages/pillar-core/src/css/utilities/_fonts.css
index 23955647..1ec4e276 100644
--- a/packages/pillar-core/src/css/utilities/_fonts.css
+++ b/packages/pillar-core/src/css/utilities/_fonts.css
@@ -1,3 +1,4 @@
+/*Font: Fs, Fw, --fw, --fs */
.u_f-thin {
font-weight: 100;
}
diff --git a/packages/pillar-core/src/css/utilities/_index.css b/packages/pillar-core/src/css/utilities/_index.css
index abbca42e..82bf473f 100644
--- a/packages/pillar-core/src/css/utilities/_index.css
+++ b/packages/pillar-core/src/css/utilities/_index.css
@@ -1,3 +1,17 @@
+/* Alignment: Ajc, Aji,Aai, Aac */
+/* animation: Az, Aj-x Aj-y */
+/* border: B */
+/* Color: Cp, Cse, Cw, Cs, Cd, Ci, Cb */
+/* Flex: Fc, Fb */
+/* Font: Fs, Fw, --fw, --fs */
+/* Radius: R, Rh, Rb, --R */
+/* Shadow: S */
+/* Size: Sw, Sh, Sr */
+/* Spacing: Sg, Sp, Spt, Spb, Spl, Spr, Sm, Smt, Smb, Sml, Smr, Sf */
+/* Text: Tt, Ta, Td, Lh */
+/* truncate: T */
+/* visual-hidden: Vsr */
+
@import './_alignment.css';
@import './_color.css';
@import './_truncate.css';
@@ -8,7 +22,7 @@
@import './_animation.css';
@import './_flex.css';
@import './_shadow.css';
-@import './_corner.css';
+@import './_radius.css';
@import './_sizing.css';
@import './_variants.css';
@import './_border.css';
diff --git a/packages/pillar-core/src/css/utilities/_corner.css b/packages/pillar-core/src/css/utilities/_radius.css
similarity index 98%
rename from packages/pillar-core/src/css/utilities/_corner.css
rename to packages/pillar-core/src/css/utilities/_radius.css
index 10a0a9b6..1e2f6af0 100644
--- a/packages/pillar-core/src/css/utilities/_corner.css
+++ b/packages/pillar-core/src/css/utilities/_radius.css
@@ -1,3 +1,5 @@
+/*Corner: R, Rh, RB, --R */
+
.u_rad-sharp {
border-radius: 0;
}
diff --git a/packages/pillar-core/src/css/utilities/_shadow.css b/packages/pillar-core/src/css/utilities/_shadow.css
index e11efd40..134957ff 100644
--- a/packages/pillar-core/src/css/utilities/_shadow.css
+++ b/packages/pillar-core/src/css/utilities/_shadow.css
@@ -1,24 +1,26 @@
+/*Shadow: S */
+
.u_sh-2xs {
- box-shadow: var(--c-sha-2xs, 1px 1px 2px -1px var(--opa-5));
+ box-shadow: var(--c-sha-2xs, 1px 1px 2px -1px var(--O5));
}
.u_sh-xs {
- box-shadow: var(--c-sha-xs, 1px 2px 4px -2px var(--opa-5));
+ box-shadow: var(--c-sha-xs, 1px 2px 4px -2px var(--O5));
}
.u_sh-sm {
- box-shadow: var(--c-sha-sm, 2px 4px 8px -4px var(--opa-5));
+ box-shadow: var(--c-sha-sm, 2px 4px 8px -4px var(--O5));
}
.u_sh-md {
- box-shadow: var(--c-sha-md, 3px 6px 12px -6px var(--opa-5));
+ box-shadow: var(--c-sha-md, 3px 6px 12px -6px var(--O5));
}
.u_sh-lg {
- box-shadow: var(--c-sha-lg, 4px 8px 16px -8px var(--opa-5));
+ box-shadow: var(--c-sha-lg, 4px 8px 16px -8px var(--O5));
}
.u_sh-xl {
- box-shadow: var(--c-sha-xl, 4px 12px 24px -12px var(--opa-5));
+ box-shadow: var(--c-sha-xl, 4px 12px 24px -12px var(--O5));
}
.u_sh-2xl {
- box-shadow: var(--c-sha-2xl, 5px 16px 32px -16px var(--opa-5));
+ box-shadow: var(--c-sha-2xl, 5px 16px 32px -16px var(--O5));
}
.u_sh-in-out {
- box-shadow: var(--c-sha-in-out, inset 0 0 0.75rem var(--opa-5), 1px 1px 3px var(--opa-5), -1px -1px 2px var(--opa-5));
+ box-shadow: var(--c-sha-in-out, inset 0 0 0.75rem var(--O5), 1px 1px 3px var(--O5), -1px -1px 2px var(--O5));
}
diff --git a/packages/pillar-core/src/css/utilities/_sizing.css b/packages/pillar-core/src/css/utilities/_sizing.css
index 969dc985..e7b8430b 100644
--- a/packages/pillar-core/src/css/utilities/_sizing.css
+++ b/packages/pillar-core/src/css/utilities/_sizing.css
@@ -1,3 +1,5 @@
+/*Size: W, H, Ar */
+
.u_ratio-1 {
aspect-ratio: 1;
}
diff --git a/packages/pillar-core/src/css/utilities/_spacing.css b/packages/pillar-core/src/css/utilities/_spacing.css
index d1f26d07..2d162c27 100644
--- a/packages/pillar-core/src/css/utilities/_spacing.css
+++ b/packages/pillar-core/src/css/utilities/_spacing.css
@@ -1,3 +1,5 @@
+/*Spacing: G, P, Pt, Pb, Pl, Pr, M, Mt, Mb, Ml, Mr */
+
/* Spacing Style Section Start */
.u_gap-2xs {
gap: var(--s-2xs);
@@ -80,3 +82,37 @@
.u_mt-auto {
margin-top: auto;
}
+
+.l_f-3xs > * + * {
+ margin-top: var(--s-3xs);
+}
+.l_f-2xs > * + * {
+ margin-top: var(--s-2xs);
+}
+
+.l_f-xs > * + * {
+ margin-top: var(--s-xs);
+}
+
+.l_f-sm > * + * {
+ margin-top: var(--s-sm);
+}
+
+.l_f-md > * + * {
+ margin-top: var(--s-md);
+}
+
+.l_f-lg > * + * {
+ margin-top: var(--s-lg);
+}
+.l_f-xl > * + * {
+ margin-top: var(--s-xl);
+}
+
+.l_f-2xl > * + * {
+ margin-top: var(--s-2xl);
+}
+
+.l_f-3xl > * + * {
+ margin-top: var(--s-3xl);
+}
diff --git a/packages/pillar-core/src/css/utilities/_state.css b/packages/pillar-core/src/css/utilities/_state.css
index da00878b..8ba528d9 100644
--- a/packages/pillar-core/src/css/utilities/_state.css
+++ b/packages/pillar-core/src/css/utilities/_state.css
@@ -1,10 +1,10 @@
:is(.b-u, .s-w):focus-visible,
:is(.r-a_cnt, .c-h_cnt, .b-r_itm, .step--button):focus-within {
- outline: 2px dashed var(--c-9, var(--pri-9));
+ outline: 2px dashed var(--c-9, var(--P9));
outline-offset: 2px;
}
:is(.step--button, .a-c_btn, .fi-p-btn):focus-visible {
- outline: 2px dashed var(--c-9, var(--pri-9));
+ outline: 2px dashed var(--c-9, var(--P9));
outline-offset: -2px;
}
diff --git a/packages/pillar-core/src/css/utilities/_text.css b/packages/pillar-core/src/css/utilities/_text.css
index d3b38fb2..93de4d83 100644
--- a/packages/pillar-core/src/css/utilities/_text.css
+++ b/packages/pillar-core/src/css/utilities/_text.css
@@ -1,3 +1,5 @@
+/*text: Tt, Ta, Td, Lh */
+
.u_t-uppercase {
text-transform: uppercase;
}
@@ -51,7 +53,7 @@
}
/*
- Align Text Decoration Section
+ line-height Section
*/
.u_t-normal {
diff --git a/packages/pillar-core/src/css/utilities/_truncate.css b/packages/pillar-core/src/css/utilities/_truncate.css
index 479d84a0..02fa9e7a 100644
--- a/packages/pillar-core/src/css/utilities/_truncate.css
+++ b/packages/pillar-core/src/css/utilities/_truncate.css
@@ -1,34 +1,34 @@
/* /// TRUNCATE TEXT UTILITY */
-
+/* truncate: Tr */
.u_truncate-1,
.u_truncate-2,
.u_truncate-3,
.u_truncate-4,
.u_truncate-5,
.u_truncate-6 {
- --lns: 1;
+ --T: 1;
display: -webkit-box;
- -webkit-line-clamp: var(--lns);
+ -webkit-line-clamp: var(--T);
-webkit-box-orient: vertical;
overflow: hidden;
}
.u_truncate-2 {
- --lns: 2;
+ --T: 2;
}
.u_truncate-3 {
- --lns: 3;
+ --T: 3;
}
.u_truncate-4 {
- --lns: 4;
+ --T: 4;
}
.u_truncate-5 {
- --lns: 5;
+ --T: 5;
}
.u_truncate-6 {
- --lns: 6;
+ --T: 6;
}
diff --git a/packages/pillar-core/src/css/utilities/_visually-hidden.css b/packages/pillar-core/src/css/utilities/_visually-hidden.css
index d4004e5c..16d45695 100644
--- a/packages/pillar-core/src/css/utilities/_visually-hidden.css
+++ b/packages/pillar-core/src/css/utilities/_visually-hidden.css
@@ -1,4 +1,5 @@
/* VISUALLY HIDDEN UTILITY */
+/* visual Hidden: SR */
.u_sr {
border: 0;
clip: rect(0 0 0 0);
diff --git a/packages/pillar-core/src/types/index.ts b/packages/pillar-core/src/types/index.ts
index 9ea7250b..3b75a73a 100644
--- a/packages/pillar-core/src/types/index.ts
+++ b/packages/pillar-core/src/types/index.ts
@@ -4,10 +4,18 @@ type Size = '3xs' | '2xs' | CommonSize | '2xl' | '3xl'
/**
* Represents the color of a component.
- * @typedef {Size} Size
+ *
+ * @typedef {string} Color
+ * @property {Color} i - Info color (for informational messages)
+ * @property {Color} d - Danger color (for errors or alerts)
+ * @property {Color} s - Success color (for positive actions or confirmations)
+ * @property {Color} se - Secondary color (for less prominent elements)
+ * @property {Color} w - Warning color (for cautionary messages)
+ * @property {Color} p - Primary color (for main actions or branding)
+ * @property {Color} b - Background color (for backgrounds or containers)
+ * @property {Color} o - Opacity color (for Transparency element)
*/
-
-type Color = 'inf' | 'dan' | 'suc' | 'sec' | 'war' | 'pri' | 'bg' | 'opa' | undefined
+type Color = 'i' | 'd' | 's' | 'se' | 'w' | 'p' | 'b' | 'o' | undefined
/**
* Represents the color of a component.
diff --git a/yarn.lock b/yarn.lock
index 52e898d8..13f400d1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3045,7 +3045,7 @@ __metadata:
tsup: "npm:^8.2.4"
typescript: "npm:^5.5.4"
peerDependencies:
- "@pillar-ui/hooks": "*"
+ "@pillar-ui/hooks": 0.7.4
react: ^18.0.0
react-dom: ^18.0.0
languageName: unknown
@@ -4690,14 +4690,14 @@ __metadata:
linkType: hard
"@types/express-serve-static-core@npm:^4.17.33":
- version: 4.19.5
- resolution: "@types/express-serve-static-core@npm:4.19.5"
+ version: 4.19.6
+ resolution: "@types/express-serve-static-core@npm:4.19.6"
dependencies:
"@types/node": "npm:*"
"@types/qs": "npm:*"
"@types/range-parser": "npm:*"
"@types/send": "npm:*"
- checksum: 10c0/ba8d8d976ab797b2602c60e728802ff0c98a00f13d420d82770f3661b67fa36ea9d3be0b94f2ddd632afe1fbc6e41620008b01db7e4fabdd71a2beb5539b0725
+ checksum: 10c0/4281f4ead71723f376b3ddf64868ae26244d434d9906c101cf8d436d4b5c779d01bd046e4ea0ed1a394d3e402216fabfa22b1fa4dba501061cd7c81c54045983
languageName: node
linkType: hard
@@ -4877,11 +4877,11 @@ __metadata:
linkType: hard
"@types/node@npm:*, @types/node@npm:^22.0.0, @types/node@npm:^22.5.3":
- version: 22.7.0
- resolution: "@types/node@npm:22.7.0"
+ version: 22.7.2
+ resolution: "@types/node@npm:22.7.2"
dependencies:
undici-types: "npm:~6.19.2"
- checksum: 10c0/127b1ac3eebe8c2b09e3d2de277ee906710c4908b4573cde23b9c7cec1cb1aaf1af8bdabbccdac08d005f820b770e7447b22c8eb56ca63344f4d2e26bcdc29fb
+ checksum: 10c0/987e4df034e4af0ce76b938c2c0d94373da376b228f1c93081a661c77e682795c599bcad47c93c70a25b8ea443587137cf23088fb7f62ef442955f13046eae3d
languageName: node
linkType: hard
@@ -4893,11 +4893,11 @@ __metadata:
linkType: hard
"@types/node@npm:^18.0.0":
- version: 18.19.51
- resolution: "@types/node@npm:18.19.51"
+ version: 18.19.53
+ resolution: "@types/node@npm:18.19.53"
dependencies:
undici-types: "npm:~5.26.4"
- checksum: 10c0/ed9d1acec81da03ed90e5ab493f47869e8791af0d6a4d882370d75decb4c567e03c6f27799ec85ab8494f61ba1c6b27ced5285747529015d4479cc83583161e0
+ checksum: 10c0/9612c38f63928abffbdabfa8e61c3adf30ff5483884eadd2fab4a790f0b2b51efdf773c76a21601c627850763da216140a4d163b27d8c6d1fa5250b0d11f683b
languageName: node
linkType: hard
@@ -6871,9 +6871,9 @@ __metadata:
linkType: hard
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001579, caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001663":
- version: 1.0.30001663
- resolution: "caniuse-lite@npm:1.0.30001663"
- checksum: 10c0/6508e27bf7fdec657f26f318b1ab64ace6e1208ef9fedaf0975bc89046e0c683bfba837f108840ada1686ff09b8ffd01e05ac791dcf598b8f16eefb636875cf2
+ version: 1.0.30001664
+ resolution: "caniuse-lite@npm:1.0.30001664"
+ checksum: 10c0/db2b431aba41a585191ab1e4d40da0ad349ff32400edac2a167bf6bf92dbf9c704eab03dc60fb89e882ce02478d61c3036b2b1bdce8edf9b2aabda5608bae05e
languageName: node
linkType: hard
@@ -8558,9 +8558,9 @@ __metadata:
linkType: hard
"electron-to-chromium@npm:^1.5.28":
- version: 1.5.28
- resolution: "electron-to-chromium@npm:1.5.28"
- checksum: 10c0/6e2f4150ba03ce53ca128955c7d2da071d3774362a10c68848a85b71c29857915e2256cb53cd2de17fdbf0f56bf76ec174d24965abef7430d8c414ec733030b2
+ version: 1.5.29
+ resolution: "electron-to-chromium@npm:1.5.29"
+ checksum: 10c0/ae4849f1fe8d756d30c6f5f992803d8550a98b38a30aecc7d9776858cf229ad05b12cb9f7675f0a89330a077d16e28388cfe394fdd9d0828ffe860c8568c95c2
languageName: node
linkType: hard
@@ -15849,8 +15849,8 @@ __metadata:
linkType: hard
"nypm@npm:^0.3.8":
- version: 0.3.11
- resolution: "nypm@npm:0.3.11"
+ version: 0.3.12
+ resolution: "nypm@npm:0.3.12"
dependencies:
citty: "npm:^0.1.6"
consola: "npm:^3.2.3"
@@ -15860,7 +15860,7 @@ __metadata:
ufo: "npm:^1.5.4"
bin:
nypm: dist/cli.mjs
- checksum: 10c0/016a74110f9629ddb9ee06d378aca56004ba0cbf824defb1f558342e411051443f95ae20171f538691798d4ac1da72d7582192c1a9c858843a2a90d6f5c3f86b
+ checksum: 10c0/1455abc1521e2d307736ef7c3b79eb4c2ef1fb2e471b90d16a440f2f7863cbcfe40708061015fd7056ebdba48359845192b749882b12a6659798244a5936ece6
languageName: node
linkType: hard