-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rewrite with codegen and simpler api (#15)
- Loading branch information
1 parent
665f1c6
commit 42806ca
Showing
18 changed files
with
2,612 additions
and
759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Palette | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' # Run every day at midnight UTC | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Make changes to pull request | ||
run: curl -Lo src/palette.json 'https://raw.githubusercontent.com/catppuccin/palette/main/palette.json' | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: 'feat: auto-sync upstream palettes' | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: new-palettes | ||
delete-branch: true | ||
title: 'feat: auto-sync upstream palettes' | ||
body: | | ||
Auto-update `src/palette.json` based on https://github.com/catppuccin/palette/blob/main/palette.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target/ | ||
.cache | ||
Cargo.lock | ||
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: v1.0 | ||
hooks: | ||
- id: cargo-check | ||
- id: clippy | ||
- id: fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,51 @@ | ||
[package] | ||
name = "catppuccin" | ||
version = "1.4.0" | ||
version = "2.0.0" | ||
authors = ["Catppuccin Org <[email protected]>"] | ||
edition = "2021" | ||
description = "🦀 Soothing pastel theme for Rust." | ||
repository = "https://github.com/catppuccin/rust" | ||
license = "MIT" | ||
keywords = ["catppuccin", "palette", "colour", "theme"] | ||
keywords = ["catppuccin", "palette", "color", "colorscheme", "theme"] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
|
||
[lints] | ||
rust.missing_docs = "warn" | ||
clippy.all = "warn" | ||
clippy.pedantic = "warn" | ||
clippy.nursery = "warn" | ||
clippy.unwrap_used = "forbid" | ||
|
||
[dependencies] | ||
ansi_term = { version = "0.12.1", optional = true } | ||
css-colors = { version = "1.0.1", optional = true } | ||
ratatui = { version = "0.25", optional = true } | ||
serde = { version = "1.0.196", features = ["derive"], optional = true } | ||
|
||
[build-dependencies] | ||
serde = { version = "1.0.196", features = ["derive"] } | ||
serde_json = "1.0.107" | ||
itertools = "0.12.1" | ||
|
||
[dev-dependencies] | ||
indoc = "1.0.7" | ||
crossterm = { version = "0.27" } | ||
crossterm = "0.27" | ||
serde_json = "1.0.107" | ||
|
||
[features] | ||
ansi = ["ansi_term"] | ||
css = ["css-colors"] | ||
ansi-term = ["dep:ansi_term"] | ||
css-colors = ["dep:css-colors"] | ||
ratatui = ["dep:ratatui"] | ||
serde = ["dep:serde"] | ||
|
||
[[example]] | ||
name = "css" | ||
required-features = ["css-colors"] | ||
|
||
[[example]] | ||
name = "term_grid" | ||
required-features = ["ansi-term"] | ||
|
||
[[example]] | ||
name = "ratatui" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.