Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/package-theme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Package Theme

on:
push:
branches:
- main
paths:
- 'packages/theme/**'
- '.releaserc'

permissions:
contents: read
packages: write
id-token: write

jobs:
release:
name: Release Package
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: |
cd packages/theme
npm ci

- name: Build package
run: |
cd packages/theme
npm run build

- name: Run Semantic Release
working-directory: packages/theme
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GIT_PKG }}
NPM_CONFIG_PROVENANCE: true
36 changes: 36 additions & 0 deletions packages/theme/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Compiled output
dist/
build/

# Temporary files
*.tmp
*.temp
.temp/
.tmp/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Testing
coverage/
.nyc_output/

# Environment variables
.env
.env.local
.env.*.local
65 changes: 65 additions & 0 deletions packages/theme/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"branches": ["main"],
"tagFormat": "@aziontech/theme@${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"parserOpts": {
"headerPattern": "^(\\[\\w+-\\d+\\]\\s+)?(\\w+):\\s(.*)$",
"headerCorrespondence": ["ticket", "type", "subject"]
},
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "hotfix", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "refactor", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": {
"headerPattern": "^(\\[\\w+-\\d+\\]\\s+)?(\\w+):\\s(.*)$",
"headerCorrespondence": ["ticket", "type", "subject"]
}
}
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "node scripts/build.mjs",
"publishCmd": "npm publish ./dist --provenance --access public"
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"CHANGELOG.md"
],
"message": "chore(release): @aziontech/theme ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"labels": false
}
]
]
}
37 changes: 37 additions & 0 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Planned

- [ ] Add support for custom theme configurations
- [ ] Include accessibility tokens (aria-labels, focus states)
- [ ] Generate TypeScript type definitions for theme tokens
- [ ] Add theme customization helpers

---

## [0.0.1]

### Added

- Initial package release
- Primitive color tokens (orange, violet, neutral, and other complete color palettes)
- Brand color tokens (black, white, gray scales)
- Semantic text tokens (light/dark variants)
- Semantic background tokens (layer1, layer2, canvas, base)
- Semantic border tokens (light/dark variants)
- Tailwind CSS plugin for token integration
- CSS variable initialization for theming
- Build script for token compilation
- Production-ready distribution structure

### Dependencies

- @tailwindcss/typography (^0.5.0)
- prettier (^2.8.0)
21 changes: 21 additions & 0 deletions packages/theme/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Azion Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading