Skip to content

Commit 9bc6a1c

Browse files
authored
Merge pull request #26 from nstringham/prettier
add continuous integration for Prettier
2 parents 21d89e9 + bfa0625 commit 9bc6a1c

32 files changed

+2274
-1753
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ root = true
55

66
# Unix-style newlines with a newline ending every file
77
[*]
8-
end_of_line = crlf
8+
end_of_line = lf
99
insert_final_newline = true
1010
charset = utf-8
1111
trim_trailing_whitespace = true

.github/CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ Thanks for your interest in contributing to Pico CSS! Please take a moment to re
44

55
## Bug reports
66

7-
The [issue tracker]((https://github.com/Yohn/PicoCSS/issues)) is the preferred channel for bug reports, but please respect the following restrictions:
7+
The [issue tracker](<(https://github.com/Yohn/PicoCSS/issues)>) is the preferred channel for bug reports, but please respect the following restrictions:
8+
89
- Please do not use the issue tracker for personal support requests. [Open a question in our discussion forums](https://github.com/Yohn/PicoCSS/discussions/categories/help) instead.
9-
- Please do not use the issue tracker for feature requests. Instead, use our discussion forums to [suggest any ideas](https://github.com/Yohn/PicoCSS/discussions/categories/ideas) you have.
10+
- Please do not use the issue tracker for feature requests. Instead, use our discussion forums to [suggest any ideas](https://github.com/Yohn/PicoCSS/discussions/categories/ideas) you have.
1011

1112
## Pull requests
1213

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ github: [Yohn] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u
1212
#polar: # Replace with a single Polar username
1313
#buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
1414
#thanks_dev: # Replace with a single thanks.dev username
15-
custom: ['http://cash.me/$yohnjohn84'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
15+
custom: ["http://cash.me/$yohnjohn84"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ about: Create a bug report if you've already asked for help with a problem and c
44
---
55

66
Please search for duplicate or closed issues first.
7-
7+
88
## Describe the issue
9-
9+
1010
### Current Behavior
11+
1112
A concise description of the bug.
1213

1314
### Expected Behavior
15+
1416
A concise description of what you expected.
1517

1618
### Reproduction URL
19+
1720
We recommend including a link to a minimal reproduction of the bug using CodePen or a similar tool.
1821
**Please do not link to your actual project.** Instead, we need a reduced test case in a new project without any unnecessary code.
1922

2023
### Environment
24+
2125
Example: OS, versions, browser details.

.github/workflows/BuildCSS.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Continues Integration
2+
3+
on:
4+
- push
5+
- pull_request
6+
- workflow_dispatch
7+
8+
jobs:
9+
prettier:
10+
name: Prettier
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Prettier Check
26+
run: npx prettier -c .
27+
28+
build:
29+
name: Build CSS
30+
runs-on: ubuntu-latest
31+
32+
permissions:
33+
contents: write
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
39+
- name: Set up Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
44+
- name: Install dependencies
45+
run: npm install
46+
47+
- name: Build CSS
48+
run: npm run build
49+
50+
- name: Commit and push changes
51+
uses: stefanzweifel/git-auto-commit-action@v5
52+
with:
53+
commit_message: Build CSS

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/css/
2+
/docs/*.css

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"printWidth": 100
2+
"printWidth": 100,
3+
"endOfLine": "auto"
34
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
[![Github release](https://img.shields.io/github/v/release/Yohn/PicoCSS?color=0172.ad&logo=github&logoColor=white)](https://github.com/Yohn/PicoCSS/releases/latest)
1212
[![npm version](https://img.shields.io/npm/v/@yohns/picocss?color=0172ad)](https://www.npmjs.com/package/@yohns/picocss)
1313
[![License](https://img.shields.io/badge/license-MIT-%230172ad)](https://github.com/Yohn/PicoCSS/blob/master/LICENSE.md)
14+
1415
<!-- [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/picocss.svg?style=social&label=Follow%20%40picocss)](https://twitter.com/picocss) -->
1516

1617
## Yohns Updated Version
18+
1719
I'm not sure if the original [Pico CSS](https://github.com/picocss/pico) repository is abandoned or not, but I really liked what they had to offer, and wanted to help not let this awesomely simple and easy to use front end framework disappear, so I merged as many of open pull requests that fixed some issues, and / or enhanced the project that were available at the time. I'll try to help keep it viable and do some bug fixes if any arise, and would alway appreciate anyone elses help to continue keeping this alive!
1820

1921
You can see the new features I, and many others have created pull requests for by going to [Yohns Pico CSS](https://yohn.github.io/PicoCSS). This page just has the demos of most of the features I have merged, or added to the project.
@@ -85,6 +87,7 @@ Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@
8587
```shell
8688
npm i @yohns/picocss
8789
```
90+
8891
<!--
8992
Or
9093

css/pico.classless.css

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,19 @@ input:not([type=submit],
199199
color-scheme: light;
200200
--pico-background-color: #fff;
201201
--pico-color: #373c44;
202-
--pico-text-selection-color: rgba(129, 145, 181, 0.25);
202+
--pico-text-selection-color: rgba(158, 146, 0, 0.25);
203203
--pico-muted-color: #646b79;
204204
--pico-muted-border-color: rgb(231, 234, 239.5);
205-
--pico-primary: #5d6b89;
206-
--pico-primary-background: #525f7a;
205+
--pico-primary: #756b00;
206+
--pico-primary-background: #f2df0d;
207207
--pico-primary-border: var(--pico-primary-background);
208-
--pico-primary-underline: rgba(93, 107, 137, 0.5);
209-
--pico-primary-hover: #48536b;
210-
--pico-primary-hover-background: #48536b;
208+
--pico-primary-underline: rgba(117, 107, 0, 0.5);
209+
--pico-primary-hover: #5b5300;
210+
--pico-primary-hover-background: #e8d600;
211211
--pico-primary-hover-border: var(--pico-primary-hover-background);
212212
--pico-primary-hover-underline: var(--pico-primary-hover);
213-
--pico-primary-focus: rgba(129, 145, 181, 0.5);
214-
--pico-primary-inverse: #fff;
213+
--pico-primary-focus: rgba(158, 146, 0, 0.5);
214+
--pico-primary-inverse: #000;
215215
--pico-secondary: #5d6b89;
216216
--pico-secondary-background: #525f7a;
217217
--pico-secondary-border: var(--pico-secondary-background);
@@ -275,7 +275,7 @@ input:not([type=submit],
275275
--pico-switch-background-color: #bfc7d9;
276276
--pico-switch-checked-background-color: var(--pico-primary-background);
277277
--pico-switch-color: #fff;
278-
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
278+
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
279279
--pico-range-border-color: #dfe3eb;
280280
--pico-range-active-border-color: #bfc7d9;
281281
--pico-range-thumb-border-color: var(--pico-background-color);
@@ -305,12 +305,12 @@ input:not([type=submit],
305305
[data-theme=light] details summary[role=button]::after,
306306
:root:not([data-theme=dark]) details summary[role=button]::after,
307307
:host(:not([data-theme=dark])) details summary[role=button]::after {
308-
filter: brightness(100) invert(0);
308+
filter: brightness(100) invert(1);
309309
}
310310
[data-theme=light] [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
311311
:root:not([data-theme=dark]) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
312312
:host(:not([data-theme=dark])) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
313-
filter: brightness(100) invert(0);
313+
filter: brightness(0) invert(1);
314314
}
315315
[data-theme=light] input:is([type=submit],
316316
[type=button],
@@ -339,19 +339,19 @@ input:not([type=submit],
339339
color-scheme: dark;
340340
--pico-background-color: rgb(19, 22.5, 30.5);
341341
--pico-color: #c2c7d0;
342-
--pico-text-selection-color: rgba(144, 158, 190, 0.1875);
342+
--pico-text-selection-color: rgba(173, 159, 0, 0.1875);
343343
--pico-muted-color: #7b8495;
344344
--pico-muted-border-color: #202632;
345-
--pico-primary: #909ebe;
346-
--pico-primary-background: #525f7a;
345+
--pico-primary: #ad9f00;
346+
--pico-primary-background: #f2df0d;
347347
--pico-primary-border: var(--pico-primary-background);
348-
--pico-primary-underline: rgba(144, 158, 190, 0.5);
349-
--pico-primary-hover: #b0b9d0;
350-
--pico-primary-hover-background: #5d6b89;
348+
--pico-primary-underline: rgba(173, 159, 0, 0.5);
349+
--pico-primary-hover: #caba01;
350+
--pico-primary-hover-background: rgb(247.5, 232, 96.5);
351351
--pico-primary-hover-border: var(--pico-primary-hover-background);
352352
--pico-primary-hover-underline: var(--pico-primary-hover);
353-
--pico-primary-focus: rgba(144, 158, 190, 0.375);
354-
--pico-primary-inverse: #fff;
353+
--pico-primary-focus: rgba(173, 159, 0, 0.375);
354+
--pico-primary-inverse: #000;
355355
--pico-secondary: #969eaf;
356356
--pico-secondary-background: #525f7a;
357357
--pico-secondary-border: var(--pico-secondary-background);
@@ -415,7 +415,7 @@ input:not([type=submit],
415415
--pico-switch-background-color: #333c4e;
416416
--pico-switch-checked-background-color: var(--pico-primary-background);
417417
--pico-switch-color: #fff;
418-
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
418+
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
419419
--pico-range-border-color: #202632;
420420
--pico-range-active-border-color: #2a3140;
421421
--pico-range-thumb-border-color: var(--pico-background-color);
@@ -458,30 +458,30 @@ input:not([type=submit],
458458
}
459459
:root:not([data-theme]) details summary[role=button]::after,
460460
:host(:not([data-theme])) details summary[role=button]::after {
461-
filter: brightness(100) invert(0);
461+
filter: brightness(100) invert(1);
462462
}
463463
:root:not([data-theme]) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
464464
:host(:not([data-theme])) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
465-
filter: brightness(100) invert(1);
465+
filter: brightness(100) invert(0);
466466
}
467467
}
468468
[data-theme=dark] {
469469
color-scheme: dark;
470470
--pico-background-color: rgb(19, 22.5, 30.5);
471471
--pico-color: #c2c7d0;
472-
--pico-text-selection-color: rgba(144, 158, 190, 0.1875);
472+
--pico-text-selection-color: rgba(173, 159, 0, 0.1875);
473473
--pico-muted-color: #7b8495;
474474
--pico-muted-border-color: #202632;
475-
--pico-primary: #909ebe;
476-
--pico-primary-background: #525f7a;
475+
--pico-primary: #ad9f00;
476+
--pico-primary-background: #f2df0d;
477477
--pico-primary-border: var(--pico-primary-background);
478-
--pico-primary-underline: rgba(144, 158, 190, 0.5);
479-
--pico-primary-hover: #b0b9d0;
480-
--pico-primary-hover-background: #5d6b89;
478+
--pico-primary-underline: rgba(173, 159, 0, 0.5);
479+
--pico-primary-hover: #caba01;
480+
--pico-primary-hover-background: rgb(247.5, 232, 96.5);
481481
--pico-primary-hover-border: var(--pico-primary-hover-background);
482482
--pico-primary-hover-underline: var(--pico-primary-hover);
483-
--pico-primary-focus: rgba(144, 158, 190, 0.375);
484-
--pico-primary-inverse: #fff;
483+
--pico-primary-focus: rgba(173, 159, 0, 0.375);
484+
--pico-primary-inverse: #000;
485485
--pico-secondary: #969eaf;
486486
--pico-secondary-background: #525f7a;
487487
--pico-secondary-border: var(--pico-secondary-background);
@@ -545,7 +545,7 @@ input:not([type=submit],
545545
--pico-switch-background-color: #333c4e;
546546
--pico-switch-checked-background-color: var(--pico-primary-background);
547547
--pico-switch-color: #fff;
548-
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
548+
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
549549
--pico-range-border-color: #202632;
550550
--pico-range-active-border-color: #2a3140;
551551
--pico-range-thumb-border-color: var(--pico-background-color);
@@ -581,10 +581,10 @@ input:not([type=submit],
581581
--pico-form-element-focus-color: var(--pico-primary-focus);
582582
}
583583
[data-theme=dark] details summary[role=button]::after {
584-
filter: brightness(100) invert(0);
584+
filter: brightness(100) invert(1);
585585
}
586586
[data-theme=dark] [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
587-
filter: brightness(100) invert(1);
587+
filter: brightness(100) invert(0);
588588
}
589589

590590
progress,

0 commit comments

Comments
 (0)