Compare commits

..

No commits in common. "13679f77ca60b5578ac9d74266d8b54e064bd91a" and "e75f0bb5ca46734ecc05949745290618f3b1a387" have entirely different histories.

7 changed files with 68 additions and 78 deletions

View file

@ -1,8 +1,6 @@
name: Publish package
on:
push:
branches:
- main
workflow_dispatch:
env:
NPM_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'next' }}
@ -31,9 +29,6 @@ jobs:
id: "setup_bun"
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: "bun install"
- name: Setup Cog
uses: https://github.com/eshepelyuk/cocogitto-diya@v1
with:

BIN
bun.lockb

Binary file not shown.

View file

@ -4,12 +4,10 @@
"module": "src/style.scss",
"type": "module",
"scripts": {
"build": "bun sass --style compressed src/style.scss dist/style.css",
"ci:publish": "bun run build && bun publish --production --frozen-lockfile --silent"
"ci:publish": "bun publish --production --frozen-lockfile --silent"
},
"devDependencies": {
"@types/bun": "latest",
"sass": "^1.83.0"
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"

View file

@ -1,13 +1,12 @@
@use "sass:color";
@use "sass:map";
@use "colors";
/* Using catppuccin for now, make a theme switcher later */
@use "../themes/catppuccin/catppuccin";
@function getColor($color) {
$ctp-theme: map.get(catppuccin.$palette, "macchiato");
@return map.get($ctp-theme, $color);
$ctp-theme: map-get(catppuccin.$palette, "macchiato");
@return map-get($ctp-theme, $color);
}
/*
@ -51,10 +50,7 @@ $msp-colors: (
"--msp-color-bg": #{getColor("mantle")},
"--msp-color-bg-transparent": #{color.scale(getColor("mantle"), $alpha: -10%)},
"--msp-color-bg-surface-1": #{getColor("base")},
"--msp-color-bg-surface-2": #{color.adjust(
getColor("surface0"),
$lightness: -2%
)},
"--msp-color-bg-surface-2": #{darken(getColor("surface0"), 2%)},
"--msp-color-bg-surface-3": #{getColor("surface1")},
"--msp-color-bg-accent": #{getColor("teal")},

View file

@ -1,6 +1,5 @@
@use "./tokens" as *;
@use "./mixins";
@use "sass:math";
.msp-position-fixed {
position: fixed;
@ -215,20 +214,20 @@
}
@for $i from 0 through 100 {
.msp-w-#{$i} {
width: math.percentage(calc($i / 100));
width: percentage(calc($i / 100));
}
.msp-h-#{$i} {
height: math.percentage(calc($i / 100));
height: percentage(calc($i / 100));
}
}
@include mixins.responsive-steps(0, 100) using ($breakpoint, $index) {
.msp-w-#{$breakpoint}-#{$index} {
width: math.percentage(calc($index / 100));
width: percentage(calc($index / 100));
}
.msp-h-#{$breakpoint}-#{$index} {
height: math.percentage(calc($index / 100));
height: percentage(calc($index / 100));
}
}

View file

@ -2,7 +2,6 @@
@use "../mixins";
@use "sass:color";
@use "sass:string";
@use "sass:map";
fieldset:not(.msp-fieldset-border) {
min-width: 0;
@ -73,7 +72,7 @@ input[type="checkbox"] {
background-color: var(--msp-color-bg-checkbox);
border-color: var(--msp-color-bg-checkbox);
$stroke-color: "%23#{string.slice(map.get($msp-colors, "--msp-color-text-checkbox"), 2, -1)}";
$stroke-color: "%23#{string.slice(map-get($msp-colors, "--msp-color-text-checkbox"), 2, -1)}";
--msp-form-check-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="#{$stroke-color}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="m6 10 3 3 6-6"/></svg>');
}
}
@ -107,7 +106,7 @@ input[type="radio"] {
background-color: var(--msp-color-bg-checkbox);
border-color: var(--msp-color-bg-checkbox);
$fill-color: "%23#{string.slice(map.get($msp-colors, "--msp-color-text-checkbox"), 2, -1)}";
$fill-color: "%23#{string.slice(map-get($msp-colors, "--msp-color-text-checkbox"), 2, -1)}";
--msp-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='#{$fill-color}'/%3e%3c/svg%3e");
}
}

View file

@ -13,8 +13,7 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"ci:publish": "docusaurus build"
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.6.1",
@ -32,7 +31,11 @@
"typescript": "~5.6.2"
},
"browserslist": {
"production": [">0.5%", "not dead", "not op_mini all"],
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 3 chrome version",
"last 3 firefox version",