Skip to content

Commit fb39c4e

Browse files
authored
fix(colors): syntax and semantic scales (#3)
1 parent 6ed2833 commit fb39c4e

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

.github/workflows/changeset.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: changeset
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js 16.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16.x
22+
23+
- name: Install Dependencies
24+
run: npm install
25+
26+
- name: Create Release Pull Request
27+
id: release
28+
uses: changesets/action@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

dappspec/_colors.sass

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
/* SPDX-License-Identifier: MIT */
22

33
/* @fileName Colors */
4-
/* @version 0.0.1 */
4+
/* @version 0.0.2 */
55
/* @package Dappspec */
66

77
/// ---------------------------------------------------------------------------
88
/// = Colors
99
10+
///
1011
/// Dappspec provides dozens of colors definitions for text, backgrounds, and
1112
/// borders. It provides these for both a day mode and a night mode. (We
1213
/// use the terms "day" and "night" instead of "light" and "dark" to avoid
13-
/// confusion with color names. Does $code(dark-blue) mean a blue that is
14-
/// dark or a blue for the dark mode?)
14+
/// confusion with color names.
15+
/// Does $code(dark-blue) mean a blue that is dark or a blue for the dark mode?)
16+
///
17+
/// The semantics of these colors follow the Radix Framework
18+
/// @see {@link https://github.com/radix-ui/colors}
19+
/// @see {@link https://www.radix-ui.com/docs/colors/palette-composition/composing-a-palette}
20+
///
21+
/// Semantic Scales
22+
/// Error: Red/Tomato/Crimson
23+
/// Success: Teal/Green/Grass/Mint
24+
/// Warning: Yellow/Amber
25+
/// Info: Blue/Sky/Cyan
26+
/// {@link https://www.radix-ui.com/docs/colors/palette-composition/composing-a-palette#choosing-semantic-scales}
27+
///
1528
/// ---------------------------------------------------------------------------
1629
1730
@use 'sass:color'
@@ -35,8 +48,8 @@
3548
/// ---------------------------------------------------------------------------
3649
3750
$theme-color-scheme: 'auto'
38-
$theme-color-scheme: 'day'
39-
$theme-color-scheme: 'night'
51+
$theme-color-scheme: 'day'
52+
$theme-color-scheme: 'night'
4053

4154

4255
/// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)