Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI
on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- run: bun install
- run: bunx playwright install --with-deps chromium
- run: bun run check
- run: bun run test
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# test output
test-results/
playwright-report/

# macOS-specific files
.DS_Store
5 changes: 5 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Code of conduct

You should adhere to GitHub's [Acceptable Use](https://help.github.com/articles/github-terms-of-service/#c-acceptable-use) policy.

You can use GitHub's [grievance process](https://github.com/contact/report-abuse) to report breaches of this policy.
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Contributing

Thank you for wanting to contribute!

Use [Bun](https://bun.sh):

```sh
bun install
```

## Commands

| Command | Description |
| ----------------- | ------------------------ |
| `bun run dev` | Start dev server |
| `bun run check` | Linting and formatting |
| `bun run test` | Playwright tests |
| `bun run preview` | Preview production build |
| `bun run build` | Production build |
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 - present Richard Hallows

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.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# dotai
# moderncss.ai

Rules for modern CSS.

The rules are a living document. If you've spotted a rule that's missing:

- [Open an issue](https://github.com/moderncss/skills/issues)
- [Contribute it](CONTRIBUTING.md)

## [License](LICENSE)
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @ts-check
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
markdown: {
shikiConfig: {
themes: {
light: "one-light",
dark: "github-dark-default",
},
defaultColor: "light-dark()",
},
},
});
1,145 changes: 1,145 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "modern-css-skills",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"check": "bun run --sequential \"check:*\"",
"check:css": "stylelint \"src/**/*.css\" \"src/components/**/*.js\"",
"check:format": "oxfmt --check .",
"check:js": "oxlint",
"check:types": "astro check",
"format": "oxfmt --write .",
"test": "playwright test"
},
"dependencies": {
"astro": "6.0.4"
},
"devDependencies": {
"@astrojs/check": "0.9.7",
"@playwright/test": "^1.58.2",
"oxfmt": "^0.40.0",
"oxlint": "^1.55.0",
"postcss-lit": "^1.4.1",
"stylelint": "^17.4.0",
"stylelint-config-alphabetical-order": "^2.0.0",
"stylelint-config-standard": "^40.0.0"
}
}
21 changes: 21 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from "@playwright/test";

export default defineConfig({
testDir: ".",
testMatch: "**/*.spec.ts",
fullyParallel: true,
use: {
baseURL: "http://localhost:4321",
},
webServer: {
command: "bun run build && bun run preview",
url: "http://localhost:4321",
reuseExistingServer: true,
},
projects: [
{
name: "chromium",
use: { browserName: "chromium" },
},
],
});
4 changes: 4 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/recursive.woff2
Binary file not shown.
Loading
Loading