Skip to content

Commit c855cdf

Browse files
committed
chore: cleanup
1 parent 305c1d7 commit c855cdf

24 files changed

Lines changed: 72 additions & 72 deletions

app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default async function Index() {
2828
CSS for the <code>&lt;Component&gt;</code> Age
2929
</h1>
3030
<h2 className="hero-subtitle">
31-
Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one
32-
API.
31+
Fast, expressive styling for React. Server components, client components, streaming SSR, React Native, all
32+
one API.
3333
</h2>
3434

3535
<HomepageBadges />

app/showcase/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { theme, font } from '@/utils/theme';
88

99
export const metadata = {
1010
title: 'Showcase',
11-
description: 'Production interfaces shipping styled-components today IMDb, Spotify, Coinbase, Prisma, and more.',
11+
description: 'Production interfaces shipping styled-components today, IMDb, Spotify, Coinbase, Prisma, and more.',
1212
};
1313

1414
const companyByOwner = new Map(sortedCompanies.map(c => [c.name, c]));

app/theme-base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Static base colors loads before JS to prevent FOUC.
1+
/* Static base colors, loads before JS to prevent FOUC.
22
Values must match the lightColors/darkColors partials in GlobalStyles.tsx. */
33

44
:root,

companies-manifest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface Company {
1919
* Tranco rank (https://tranco-list.eu/). Tranco aggregates Cisco
2020
* Umbrella, Majestic, Farsight, Cloudflare Radar, and CrUX into a
2121
* single global popularity ranking that resists day-to-day churn.
22-
* Used only to sort the showcase grid lower = more prominent.
22+
* Used only to sort the showcase grid: lower = more prominent.
2323
*/
2424
globalRank: number;
2525
style: React.HTMLAttributes<HTMLElement>['style'];

components/BlogComments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Wrapper = styled.div`
3939
max-width: none;
4040
}
4141
42-
/* Hide the "Comments" heading when there's no reply list to head
42+
/* Hide the "Comments" heading when there's no reply list to head;
4343
the package renders it unconditionally. onEmpty() can't be used because
4444
it only fires on errors, not on empty-reply threads. */
4545
[class*='_container_']:not(:has([class*='_commentsList_'])) [class*='_commentsTitle_'] {

components/Breadcrumbs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const SECTION_LABELS: Record<string, string> = {
2525
releases: 'Releases',
2626
};
2727

28-
// Single source of truth for docs category titles derived from docs.json
28+
// Single source of truth for docs category titles, derived from docs.json
2929
const DOCS_CATEGORY_LABELS: Record<string, string> = Object.fromEntries(
3030
docsJson.pages.map(page => [page.pathname, page.title])
3131
);

components/CaptureScroll.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function captureScroll<T extends React.ComponentType>(Component:
8686
}, []);
8787

8888
// React.ComponentType<P> doesn't model `ref` for generic T, so TS can't
89-
// verify the callee accepts a ref. Runtime is fine callers always pass
89+
// verify the callee accepts a ref. Runtime is fine, callers always pass
9090
// ref-forwarding components.
9191
// @ts-expect-error see note above
9292
return <Component {...props} ref={ref} />;

components/CelebrationEffect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const PropertyRegistrations = createGlobalStyle`
8686
// Keyframes
8787
// ---------------------------------------------------------------------------
8888

89-
// Opacity holds at 1 across the 35% plateau before fading the eye reads
89+
// Opacity holds at 1 across the 35% plateau before fading, the eye reads
9090
// the plateau as "the explosion." With fill-mode: both the 0% state applies
9191
// during animation-delay, so particles stay invisible until ignition.
9292
const burstAnim = keyframes`
@@ -105,7 +105,7 @@ const burstAnim = keyframes`
105105
// animating via @property --trail-progress, which Safari doesn't reliably
106106
// animate inside translate calc expressions.
107107
// X: linear interpolation at each stop (p).
108-
// Y: quadratic ease-out 2p-p² evaluated at each stop decelerating rise.
108+
// Y: quadratic ease-out 2p-p² evaluated at each stop, decelerating rise.
109109
// Y uses quadratic ease-out: f(p) = 2p - p². Evaluated at each stop:
110110
// p=0: 0, p=0.2: 0.36, p=0.4: 0.64, p=0.6: 0.84, p=0.8: 0.96,
111111
// p=0.86: 0.9804, p=0.92: 0.9936, p=1: 1

components/GlobalStyles.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { createGlobalStyle } from 'styled-components';
44
import { theme, font, darkColors } from '../utils/theme';
55

6-
// Dark color overrides derived from `theme.vars` the bare CSS custom
6+
// Dark color overrides derived from `theme.vars`, the bare CSS custom
77
// property names stay in sync with `createTheme`'s prefix/path derivation,
88
// so if the prefix changes in `utils/theme.ts` the overrides still land.
99
const darkColorCSS = Object.entries(darkColors)
@@ -14,7 +14,7 @@ const darkColorCSS = Object.entries(darkColors)
1414

1515
const GlobalStyles = createGlobalStyle`
1616
/* ===================================================================
17-
* @property register tokens as typed so they're animatable.
17+
* @property, register tokens as typed so they're animatable.
1818
* =================================================================== */
1919
@property --sc-color-bg {
2020
syntax: '<color>';
@@ -53,7 +53,7 @@ const GlobalStyles = createGlobalStyle`
5353
*,::after,::before{background-repeat:no-repeat;box-sizing:inherit}::after,::before{text-decoration:inherit;vertical-align:inherit}html{box-sizing:border-box;cursor:default;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,footer,header,nav,section{display:block}body{margin:0}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}nav ol,nav ul{list-style:none}pre{font-family:monospace,monospace;font-size:1em}a{text-decoration:none;color:inherit;background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,canvas,iframe,img,svg,video{vertical-align:middle}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}table{border-collapse:collapse}button,input,optgroup,select,textarea{margin:0}button,input,select,textarea{background-color:transparent;color:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button;cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[tabindex],a,area,button,input,label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}[hidden]{display:none}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-hidden=false][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute}[aria-disabled]{cursor:default}
5454
5555
/* ===================================================================
56-
* Dark/light overrides CSS-first for flash-free dark mode.
56+
* Dark/light overrides, CSS-first for flash-free dark mode.
5757
* theme.GlobalStyle emits :root vars from ThemeProvider on hydration;
5858
* these class/media overrides have higher specificity and win.
5959
* =================================================================== */
@@ -72,7 +72,7 @@ const GlobalStyles = createGlobalStyle`
7272
}
7373
7474
/* ===================================================================
75-
* Base global element styles referencing tokens.
75+
* Base, global element styles referencing tokens.
7676
* =================================================================== */
7777
html, body {
7878
font-size: 16px;
@@ -277,7 +277,7 @@ const GlobalStyles = createGlobalStyle`
277277
}
278278
279279
/* ===================================================================
280-
* DocSearch theming CSS variables for light/dark mode.
280+
* DocSearch theming, CSS variables for light/dark mode.
281281
* =================================================================== */
282282
:root {
283283
--docsearch-primary-color: ${theme.color.accent};

components/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { theme } from '../utils/theme';
77
import rem from '../utils/rem';
88

99
// ---------------------------------------------------------------------------
10-
// Link design system all variants defined in one place
10+
// Link design system, all variants defined in one place
1111
// ---------------------------------------------------------------------------
1212

1313
export type LinkVariant = 'inline' | 'heading' | 'block' | 'unstyled';

0 commit comments

Comments
 (0)