Skip to content

Commit

Permalink
Workspaces (#6)
Browse files Browse the repository at this point in the history
* Add workspace
  • Loading branch information
alexaka1 authored May 1, 2024
1 parent 5c33a0e commit 569d4d6
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .changeset/chilly-eagles-carry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@alexaka1/tailwindcss-oklch": patch
'@alexaka1/tailwindcss-oklch': patch
---

Initial release
6 changes: 5 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ <h2 class="font-bold text-lg mb-2">Automatic dark/light themes</h2>
>.
</p>
</footer>
<script src="https://colorjs.io/dist/color.global.js" integrity="sha384-WsXq89XbYSmhaUQB8w5AS6Pp+Tf4v8Klxi3vtqH0SJSBcVkUg/lg6bGJxpVamrCm" crossorigin="anonymous"></script>
<script
src="https://colorjs.io/dist/color.global.js"
integrity="sha384-WsXq89XbYSmhaUQB8w5AS6Pp+Tf4v8Klxi3vtqH0SJSBcVkUg/lg6bGJxpVamrCm"
crossorigin="anonymous"
></script>
<script>
const root = document.documentElement;
document.querySelectorAll('[data-color]').forEach((input) => {
Expand Down
5 changes: 1 addition & 4 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@
"dev": "tailwindcss -i ./src/main.css -o ./dist/main.css --watch"
},
"author": "",
"license": "ISC",
"devDependencies": {
"tailwindcss": "workspace:*"
}
"license": "ISC"
}
2 changes: 1 addition & 1 deletion examples/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const defaultTheme = require('tailwindcss/defaultTheme');

module.exports = {
content: ['index.html'],
plugins: [require('../src')()],
plugins: [require('../src/tailwindcss-oklch/src')()],
theme: {
extend: {
colors: {
Expand Down
29 changes: 6 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,24 @@
{
"name": "@alexaka1/tailwindcss-oklch",
"name": "root",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@9.1.0-0+sha256.c557b24d2298d9b5e3be7086ebf55a28253b008324d545f72645a6de89844102",
"description": "Bring OKLCH colors to tailwind and introduces handy color utilities",
"author": "Alex Martossy <github@mail.martossy.hu>",
"license": "MIT",
"repository": "https://github.com/alexaka1/tailwindcss-oklch",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"release": "pnpm run build && changeset publish",
"lint": "tsc",
"build": "pnpm --filter tailwindcss-oklch run build",
"release": "pnpm --filter tailwindcss-oklch run release",
"lint": "pnpm --filter tailwindcss-oklch run lint ",
"fmt": "prettier --check . --experimental-ternaries",
"fmt:fix": "prettier --write . --experimental-ternaries",
"changeset": "changeset",
"version": "changeset version"
},
"dependencies": {
"colorjs.io": "^0.5.0"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"tailwind",
"tailwindcss",
"oklch",
"colors",
"color contrast"
]
}
}
10 changes: 6 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
# examples
- 'examples/*'
- 'src/*'
30 changes: 30 additions & 0 deletions src/tailwindcss-oklch/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@alexaka1/tailwindcss-oklch",
"version": "0.0.0",
"private": false,
"description": "Bring OKLCH colors to tailwind and introduces handy color utilities",
"repository": "https://github.com/alexaka1/tailwindcss-oklch",
"author": "Alex Martossy <github@mail.martossy.hu>",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"release": "pnpm run build && changeset publish",
"lint": "tsc"
},
"dependencies": {
"colorjs.io": "^0.5.0"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"tailwind",
"tailwindcss",
"oklch",
"colors",
"color contrast"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 569d4d6

Please sign in to comment.