Skip to content

Commit aa3a2ea

Browse files
authored
Merge pull request #82 from mflocss/feat/simplify-color-tokens
refactor: Tokens カラー定義を使用状況に合わせて簡素化
2 parents aa45cef + 613f97f commit aa3a2ea

16 files changed

Lines changed: 56 additions & 87 deletions

File tree

.stylelintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"selector-class-pattern": null,
55
"custom-property-pattern": "^([a-z][a-z0-9]*(-[a-z0-9]+)*|_[a-z0-9]+(-[a-z0-9]+)*)$",
66
"at-rule-no-unknown": [true, { "ignoreAtRules": ["layer"] }],
7+
"block-no-empty": [true, { "severity": "warning" }],
78
"import-notation": "string",
89
"property-no-vendor-prefix": [true, { "ignoreProperties": ["text-size-adjust", "-webkit-text-size-adjust", "-webkit-tap-highlight-color"] }]
910
}

src/css/component/c-table.css

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/css/foundation/base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:where(h1, h2, h3, h4, h5, h6) {
2020
font-weight: var(--font-weight-bold);
2121
line-height: var(--line-height-heading);
22+
color: var(--color-heading);
2223
}
2324

2425
:where(a) {

src/css/project/p-contact.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.p-contact {}
2+
.p-contact__inner {}
3+
.p-contact__heading {}
4+
15
.p-contact__lead {
26
text-align: center;
37
margin-block-start: 1rem;

src/css/project/p-cta.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
background-color: var(--color-bg-secondary);
44
}
55

6+
.p-cta__inner {}
7+
.p-cta__heading {}
8+
69
.p-cta__text {
710
margin-block-start: 1rem;
811
color: var(--color-text-light);
@@ -12,3 +15,5 @@
1215
.p-cta__action {
1316
margin-block-start: 2rem;
1417
}
18+
19+
.p-cta__button {}

src/css/project/p-faq.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
.p-faq {}
2+
.p-faq__inner {}
3+
.p-faq__heading {}
4+
15
.p-faq__list {
26
max-inline-size: 48rem;
37
margin-block-start: 2.5rem;
48
margin-inline: auto;
59
}
10+
11+
.p-faq__accordion {}

src/css/project/p-features.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.p-features {}
2+
.p-features__inner {}
3+
.p-features__heading {}
4+
15
.p-features__grid {
26
display: grid;
37
gap: 2rem;
@@ -8,6 +12,11 @@
812
}
913
}
1014

15+
.p-features__grid-item {}
16+
.p-features__card {}
17+
.p-features__card-image {}
18+
.p-features__badge {}
19+
1120
.p-features__card-icon {
1221
font-size: 2.5rem;
1322
line-height: 1;

src/css/project/p-footer.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
padding-inline: var(--content-padding-inline);
1212
}
1313

14+
.p-footer__nav-group {}
15+
1416
.p-footer__nav-heading {
1517
font-size: 0.875rem;
1618
font-weight: var(--font-weight-bold);

src/css/project/p-hero.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
background: radial-gradient(ellipse at 50% 0%, oklch(from var(--color-main) l c h / 6%) 0%, transparent 70%);
77
}
88

9+
.p-hero__inner {}
10+
911
.p-hero__title {
1012
--_font-size-min: 28;
1113
--_font-size-max: 48;
@@ -21,8 +23,8 @@
2123
&::after {
2224
content: '';
2325
display: block;
24-
inline-size: 3rem;
2526
block-size: 3px;
27+
inline-size: 3rem;
2628
margin-block-start: 1rem;
2729
margin-inline: auto;
2830
background: linear-gradient(in oklab, var(--color-main), var(--color-accent));
@@ -40,21 +42,22 @@
4042
calc((var(--_font-size-max) - var(--_font-size-min)) / var(--vp-range) * var(--vp-offset) + var(--_font-size-min) * var(--px)),
4143
calc(var(--_font-size-max) * var(--px))
4244
);
43-
color: var(--color-text-light);
4445
line-height: var(--line-height-base);
46+
color: var(--color-text-light);
4547
}
4648

4749
.p-hero__actions {
4850
display: flex;
4951
flex-wrap: wrap;
50-
gap: 1rem;
5152
justify-content: center;
53+
gap: 1rem;
5254
margin-block-start: 2.5rem;
5355
}
5456

57+
.p-hero__cta {}
58+
5559
.p-hero__image {
5660
display: block;
57-
inline-size: 100%;
5861
max-inline-size: 800px;
5962
block-size: auto;
6063
margin-block-start: 3rem;

src/css/project/p-numbers.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
background-color: var(--color-bg-secondary);
33
}
44

5+
.p-numbers__inner {}
6+
.p-numbers__heading {}
7+
58
.p-numbers__grid {
69
display: grid;
710
gap: 2rem;
@@ -13,6 +16,8 @@
1316
}
1417
}
1518

19+
.p-numbers__item {}
20+
1621
.p-numbers__value {
1722
--_font-size-min: 36;
1823
--_font-size-max: 56;

0 commit comments

Comments
 (0)