diff --git a/.github/workflows/check-tokens.yml b/.github/workflows/check-tokens.yml new file mode 100644 index 0000000..ffd2a81 --- /dev/null +++ b/.github/workflows/check-tokens.yml @@ -0,0 +1,36 @@ +name: Check Version 14 tokens + +on: + push: + pull_request: + schedule: + - cron: "17 6 * * 1" + workflow_dispatch: + +permissions: + contents: read + +jobs: + check-tokens: + runs-on: ubuntu-latest + steps: + - name: Check out this theme + uses: actions/checkout@v4 + with: + path: repos/${{ github.event.repository.name }} + + - name: Check out shared tokens + uses: actions/checkout@v4 + with: + repository: version14/tokens + ref: main + path: tokens + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Verify generated files + run: python tokens/generate.py --themes-root repos --check + diff --git a/README.md b/README.md index fe506c3..01d4557 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A dark and light theme for [Zed](https://zed.dev), built around the Version 14 brand palette: high contrast accents on deep neutrals. +## Palette source + +The shared semantic colors are maintained in [version14/tokens](https://github.com/version14/tokens). This repository keeps Zed-native generated files. + ## Variants | Variant | Description |