Skip to content

Commit

Permalink
New atempt to use layers with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Kloos committed Jan 8, 2024
1 parent d8a9fc4 commit 229b907
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 25 deletions.
232 changes: 232 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"description": "A base stylesheet using system colors and css keywords.",
"scripts": {
"build": "npx -y vite build --base '/system.css/'"
"build": "vite build"
},
"author": "C. Egor Kloos",
"license": "AGPLv3",
Expand Down
41 changes: 19 additions & 22 deletions src/system-properties.css
Original file line number Diff line number Diff line change
@@ -1,116 +1,113 @@
@property --system-accent-color {
syntax: '<color>';
syntax: '<color>|AccentColor';
inherits: true;
initial-value: AccentColor;
}

@property --system-accent-color-text {
syntax: '<color>';
syntax: '<color>|AccentColorText';
inherits: true;
initial-value: AccentColorText;
}

@property --system-active-text {
syntax: '<color>';
syntax: '<color>|ActiveText';
inherits: true;
initial-value: ActiveText;
}

@property --system-button-border {
syntax: '<color>';
syntax: '<color>|ButtonBorder';
inherits: true;
initial-value: ButtonBorder;
}

@property --system-button-face {
syntax: '<color>';
syntax: '<color>|ButtonFace';
inherits: true;
initial-value: ButtonFace;
}

@property --system-button-text {
syntax: '<color>';
syntax: '<color>|ButtonText';
inherits: true;
initial-value: ButtonText;
}

@property --system-canvas {
syntax: '<color>';
syntax: '<color>|Canvas';
inherits: true;
initial-value: Canvas;
}

@property --system-canvas-text {
syntax: '<color>';
syntax: '<color>|CanvasText';
inherits: true;
initial-value: CanvasText;
}

@property --system-field {
syntax: '<color>';
syntax: '<color>|Field';
inherits: true;
initial-value: Field;
}

@property --system-field-text {
syntax: '<color>';
syntax: '<color>|FieldText';
inherits: true;
initial-value: FieldText;
}

@property --system-gray-text {
syntax: '<color>';
syntax: '<color>|GrayText';
inherits: true;
initial-value: GrayText;
}

@property --system-highlight {
syntax: '<color>';
syntax: '<color>|Highlight';
inherits: true;
initial-value: Highlight;
}

@property --system-highlight-text {
syntax: '<color>';
syntax: '<color>|HighlightText';
inherits: true;
initial-value: HighlightText;
}

@property --system-link-text {
syntax: '<color>';
syntax: '<color>|LinkText';
inherits: true;
initial-value: LinkText;
}

@property --system-mark {
syntax: '<color>';
syntax: '<color>|Mark';
inherits: true;
initial-value: Mark;
}

@property --system-mark-text {
syntax: '<color>';
syntax: '<color>|MarkText';
inherits: true;
initial-value: MarkText;
}

@property --system-selected-item {
syntax: '<color>';
syntax: '<color>|SelectedItem';
inherits: true;
initial-value: SelectedItem;
}

@property --system-selected-item-text {
syntax: '<color>';
syntax: '<color>|SelectedItemText';
inherits: true;
initial-value: SelectedItemText;
}

@property --system-visited-text {
syntax: '<color>';
syntax: '<color>|VisitedText';
inherits: true;
initial-value: VisitedText;
}



4 changes: 2 additions & 2 deletions theme/openprops/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import url('open-props.min.css');
@import url('system-open-props.css');
@import url('open-props.min.css') layer(--theme);
@import url('system-open-props.css') layer(--theme);
Loading

0 comments on commit 229b907

Please sign in to comment.