Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.
182 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 29 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 31 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 66 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 68 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 80 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 82 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 173 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 175 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 177 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 180 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 278 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …kages/styled-components/src/native/profile-pipeline.ts | 280 | // ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …ages/styled-components/src/native/profile-animation.ts | 36 | // ── Color parse / serialize ──────────────────────────────────────── |
| MEDIUM | …ages/styled-components/src/native/profile-animation.ts | 101 | // ── Transform parse ──────────────────────────────────────────────── |
| MEDIUM | …ages/styled-components/src/native/profile-animation.ts | 112 | // ── Additive combine ─────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 19 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 21 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 69 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 71 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 84 | // ── background-blend-mode ───────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 297 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/styled-components/src/native/polyfills.ts | 299 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 12 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 14 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 24 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 26 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 344 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 346 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 369 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …s/styled-components/src/native/test/polyfills.test.tsx | 371 | // ────────────────────────────────────────────────────────────────── |
| MEDIUM | …ed-components/src/native/transform/test/stress.test.ts | 87 | // ─── compileNative cache-layer stress ───────────────────────────────── |
| MEDIUM | …components/src/native/transform/polyfills/colorMath.ts | 436 | // ─── Inverse conversions (linear sRGB → wide-gamut space) ───────────── |
| MEDIUM | …/src/native/transform/polyfills/test/resolvers.test.ts | 813 | // ────────────────────────────────────────────────────────────────────── |
| MEDIUM | …/src/native/transform/polyfills/test/resolvers.test.ts | 831 | // ────────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 122 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 125 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 197 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 199 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 354 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 356 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 389 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 394 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 451 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 456 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 553 | // ─────────────────────────────────────────────────────────────────── |
| MEDIUM | packages/sandbox/app/container-queries/harness.tsx | 560 | // ─────────────────────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/release-notes/build-prerelease-release-notes.ts | 29 | function changelogOptionsFromChangesetConfig(cwd: string): ChangelogOptions { |
| LOW | scripts/release-notes/build-prerelease-release-notes.ts | 45 | function repoSlugFromRootPackageJson(cwd: string): string | undefined { |
| LOW | scripts/release-notes/build-prerelease-release-notes.ts | 77 | export function resolveChangelogOptionsForBuild( |
| LOW | scripts/release-notes/build-prerelease-release-notes.ts | 110 | export async function buildPrereleaseReleaseNotes(options: { |
| LOW | scripts/release-notes/prerelease-grouping.ts | 26 | export function shouldSkipChangesetForPrevTag( |
| LOW | scripts/release-notes/changelog.ts | 11 | function githubChangesetHistoryUrl(id: string, repo: string, branch: string): string { |
| LOW | packages/styled-components/src/native/polyfills.ts | 132 | export function applyBackgroundBlendModePolyfill( |
| LOW | …ents/src/native/reanimated/mapDescriptorsToCSSLayer.ts | 80 | function offsetToReanimatedSelector(offset: number): string { |
| LOW | …ents/src/native/reanimated/mapDescriptorsToCSSLayer.ts | 92 | export function compiledKeyframesToReanimatedKeyframes( |
| LOW | …ents/src/native/reanimated/mapDescriptorsToCSSLayer.ts | 180 | function applyReduceMotionToCssLayer(out: Record<string, unknown>, reduceMotion: boolean): void { |
| LOW | …/src/native/reanimated/mergeReanimatedResolvedStyle.ts | 11 | export function mergeReanimatedResolvedStyle( |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 337 | export function animationDurationLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 345 | export function animationTimingFunctionLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 358 | export function animationIterationCountLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 371 | export function animationDirectionLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 375 | export function animationFillModeLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 379 | export function animationPlayStateLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 383 | export function animationCompositionLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 387 | export function transitionPropertyLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 393 | export function transitionDurationLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 401 | export function transitionTimingFunctionLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …led-components/src/native/animation/parse-shorthand.ts | 405 | export function transitionBehaviorLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1402 | function buildSegmentedInterpolation( |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1585 | function buildKeyframeInterpolations( |
| LOW | …ages/styled-components/src/native/web-bridge/index.tsx | 759 | function applyBridgeRewritesToRules(rules: string[]): void { |
| LOW | …mponents/src/native/transform/boxShadowSystemColors.ts | 79 | export function maybeExpandBoxShadowSystemColors(rawValue: string): string | Dict<any>[] { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 145 | function isNonNegativeLengthPercentageToken(t: Token): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 179 | function isValidEdgeOffsetPosition(tokens: Token[]): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 208 | function isValidBackgroundPositionLayer(layer: string): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 219 | function isValidBackgroundSizeLayer(layer: string): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 235 | function isValidBackgroundRepeatLayer(layer: string): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 257 | export function isValidLayeredBackgroundValue(camel: string, value: string): boolean { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 264 | function normalizeBackgroundPositionLayer(layer: string): string { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 282 | export function normalizeBackgroundPositionValue(value: string): string { |
| LOW | …/styled-components/src/native/transform/passthrough.ts | 348 | export function substituteBackgroundSizeKeywordsForNative(value: string): string { |
| LOW | …-components/src/native/transform/filterSystemColors.ts | 111 | export function maybeExpandFilterDropShadowSystemColors(rawValue: string): string | Dict<any>[] { |
| LOW | …ed-components/src/native/transform/shorthandHelpers.ts | 110 | export function cssColorRawToRnStyleValue(raw: string): unknown { |
| LOW | …nents/src/native/transform/backgroundGradientNative.ts | 29 | function directionKeywordToDirectionField(direction: string): string | null { |
| LOW | …nents/src/native/transform/backgroundGradientNative.ts | 67 | function parseColorStopsSystemColors( |
| LOW | …nents/src/native/transform/backgroundGradientNative.ts | 196 | export function maybeExpandBackgroundImageSystemColors(rawValue: string): string | Dict<any>[] { |
| LOW | …d-components/src/native/transform/polyfills/mathFns.ts | 28 | export function resolveStaticMathFunction( |
| LOW | …d-components/src/native/transform/polyfills/mathFns.ts | 298 | function readCommaOperandsWithLeadingKeyword( |
| LOW | …ponents/src/native/transform/polyfills/systemColors.ts | 133 | export function getSystemColorPlatformColor(keyword: string): unknown | null { |
| LOW | …components/src/native/transform/polyfills/colorMath.ts | 1080 | function colorChannelsToLinearSrgb( |
| LOW | …components/src/native/transform/polyfills/colorMath.ts | 1226 | function rgbSpaceTripleFromOperand( |
| LOW | …ed-components/src/native/transform/polyfills/scroll.ts | 9 | function overscrollBehaviorShorthand(tokens: Token[]): Dict<any> | null { |
| LOW | …components/src/native/transform/polyfills/resolvers.ts | 650 | function embeddedLightDarkResolver(value: string): Resolver | null { |
| LOW | …components/src/native/transform/polyfills/resolvers.ts | 1009 | function minMaxClampResolverFromFn(name: string, fn: Token, opts?: BuildOpts): Resolver | null { |
| LOW | …-components/src/native/transform/polyfills/textWrap.ts | 17 | function warnIosTextWrapBalancePretty(style: string): void { |
| LOW | …led-components/src/native/transform/handlers/border.ts | 36 | function warnUnsupportedBorderStyle(name: string): void { |
| LOW | …led-components/src/native/transform/handlers/border.ts | 58 | function normalizeNativeBorderStyle(name: string): Dict<any> | null { |
| LOW | …tyled-components/src/native/transform/handlers/text.ts | 136 | export function textDecorationLineShorthand(tokens: Token[]): Dict<any> | null { |
| LOW | …tyled-components/src/native/transform/handlers/text.ts | 174 | export function textShadowOffsetShorthand(tokens: Token[]): Dict<any> | null { |
| LOW | …components/src/native/transform/handlers/background.ts | 376 | export function backgroundAttachmentLonghand(tokens: Token[]): Dict<any> | null { |
| LOW | …ed-components/src/native/transform/handlers/spacing.ts | 97 | function collapseCircularSlashRadius(tokens: Token[]): Dict<any> | null { |
| LOW | packages/styled-components/src/utils/error.ts | 28 | export default function throwStyledComponentsError( |
| LOW | packages/styled-components/src/models/compileNative.ts | 142 | function isNonPseudoConditionalStyle(entry: ConditionalStyle): entry is NonPseudoConditionalStyle { |
| LOW | packages/styled-components/src/models/compileNative.ts | 906 | function stripSpecialCasesFromConditional(styles: Dict<any>, entry: ConditionalStyle): Dict<any> { |
| LOW | …/styled-components/src/models/StyledNativeComponent.ts | 438 | function mergeCustomPropertiesIntoCascade( |
| LOW | …/styled-components/src/models/StyledNativeComponent.ts | 701 | function nthChildOfSelectorMatches( |
| 13 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/styled-components/tsconfig.json | 21 | "target": "ES2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES20 |
| LOW | packages/styled-components/tsconfig.json | 41 | |
| LOW | packages/styled-components/tsconfig.json | 61 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
| LOW | packages/styled-components/src/types.ts | 301 | > extends React.ForwardRefExoticComponent< |
| LOW | …led-components/src/native/test/important-spec.test.tsx | 1 | // CSS Cascade and Inheritance Module Level 4 — `!important` semantics |
| LOW | …components/src/native/test/css-variables-spec.test.tsx | 321 | // Strict spec result for the chain below would be `color: |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1761 | |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1781 | // loop(remaining)])` so the adapter resumes at the captured |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1921 | const partial = isReverse ? makeReverse(partialDuration, 0) : makeForward(partialDuration, 0); |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 1961 | // |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 2061 | } else { |
| LOW | …ckages/styled-components/src/native/animation/index.ts | 2161 | // never restart (`!animS.finished` guard). Stale completions after a |
| LOW | …ts/src/native/animation/test/animated-adapter.test.tsx | 301 | expect(config.duration).toBe(280); |
| LOW | …ts/src/native/animation/test/animated-adapter.test.tsx | 1301 | // combination is direct; same-unit strings (`'10px'`) parse, |
| LOW | …ts/src/native/animation/test/animated-adapter.test.tsx | 1321 | // paint mix. |
| LOW | …ages/styled-components/src/native/web-bridge/index.tsx | 21 | * @see ../../test/rn-web-contract.test.tsx — locks the $$css contract |
| LOW | …ages/styled-components/src/native/web-bridge/index.tsx | 741 | cls + ':not(textarea):not(input) { display: flex; align-items: ' + flexValue + '; }', |
| LOW | …ckages/styled-components/src/native/transform/index.ts | 141 | if (passthroughKeys.length === 1) { |
| LOW | …ckages/styled-components/src/native/transform/index.ts | 221 | // modern function forms get stripped to `undefined` (transparent) |
| LOW | …onents/src/native/transform/polyfills/genericFamily.ts | 21 | // No clean serif system face; Times New Roman ships on iOS since 2.0. |
| LOW | …components/src/native/transform/polyfills/resolvers.ts | 121 | // viewport size; on RN small/large/dynamic all collapse to env.media |
| LOW | …components/src/native/transform/polyfills/resolvers.ts | 201 | // through to the browser's CSS engine, which resolves `%` against the |
| LOW | …components/src/native/transform/polyfills/resolvers.ts | 241 | if (c0 === 0x72 /* r */ && value.startsWith('round(line-width,')) { |
| LOW | …/src/native/transform/polyfills/test/resolvers.test.ts | 821 | // |
| LOW | …/src/native/transform/polyfills/test/resolvers.test.ts | 1621 | }); |
| LOW | …/src/native/transform/polyfills/test/resolvers.test.ts | 1841 | }); |
| LOW | …/src/native/transform/polyfills/test/resolvers.test.ts | 1981 | }); |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 1421 | }); |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 1841 | // text-wrap-mode = wrap | nowrap |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 2041 | // Initial: manual |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 2681 | }); |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 2701 | // visible vs. no effect at all). A one-time informational warn |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 3161 | describe('§4.1 alpha clamp (Color 5 §4.1)', () => { |
| LOW | packages/styled-components/src/test/treeshake.test.ts | 421 | // / objectToTemplate + Phase C TemplateValue + interpolation-sentinel |
| LOW | packages/styled-components/src/models/compileNative.ts | 381 | // auto` reaches Android's system hyphenator instead of being dropped as |
| LOW | packages/styled-components/src/models/compileNative.ts | 401 | // `interactivity: inert` on rn-web: a single HTML `inert` attribute |
| LOW | packages/styled-components/src/models/compileNative.ts | 561 | // never sees the prop change. |
| LOW | packages/styled-components/src/models/compileNative.ts | 1741 | node.prop + ':' + v |
| LOW | packages/styled-components/src/parser/parser.test.ts | 361 | |
| LOW | packages/styled-components/src/parser/parser.test.ts | 401 | }); |
| LOW | packages/styled-components/src/parser/nativePlan.ts | 141 | const notCls = detectNot(selectors); |
| LOW | packages/ios-benchmark/ios/iosbench/SCProfiler.h | 1 | #import <React/RCTBridgeModule.h> |
| LOW | packages/native-showcase/babel.config.js | 1 | // Substitutes styled-components' build-time constants so Metro can |
| LOW | …se/ios/NativeShowcase/NativeShowcase-Bridging-Header.h | 1 | // |
| LOW | …ages/native-showcase/src/components/ScreenScaffold.tsx | 21 | |
| LOW | …ages/native-showcase/src/components/ScreenScaffold.tsx | 361 | // deliberately do NOT pass `initialScrollIndex` to FlatList. Without |
| LOW | …ges/native-showcase/src/widgets/ContainerQueryCard.tsx | 81 | // Positioning shell + container host. Owns the controlled width and |
| LOW | …ckages/native-showcase/src/widgets/GradientPalette.tsx | 41 | // Stars-and-stripes: |
| LOW | …ckages/native-showcase/src/widgets/GradientPalette.tsx | 61 | // platform without any extra runtime prop. |
| LOW | packages/native-showcase/src/widgets/PlatonicLogo.tsx | 541 | // Component - hero variant. Auto-cycles through all 5 solids while idle, |
| LOW | packages/native-showcase/src/widgets/PlatonicLogo.tsx | 701 | // Pointer-equivalent angular velocity in (dx, dy) per frame. Initialized |
| LOW | packages/native-showcase/src/widgets/PlatonicLogo.tsx | 821 | // per-frame deltas are scaled by `dt * 60` so visual rate is constant |
| LOW | packages/sandbox/next-env.d.ts | 1 | /// <reference types="next" /> |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 1760 | // Step 2: "If the last control point lacks an input progress value, |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 1767 | // Step 3: "If any control point has an input progress value that is |
| LOW | …/src/native/transform/polyfills/test/polyfills.test.ts | 1781 | // Step 4: "If any control point still lacks an input progress |
| LOW | …ges/sandbox/app/global-style-test/autopilot-client.tsx | 82 | // Step 4: Mount conditional style |
| LOW | …ges/sandbox/app/global-style-test/autopilot-client.tsx | 106 | // Step 5: Unmount conditional style |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/ios-benchmark/src/app/Benchmark/index.tsx | 90 | trimmedMean: number; // 5% trimmed each side, robust to GC spikes |
| MEDIUM | packages/ios-benchmark/src/app/Benchmark/math.ts | 33 | // Inter-quartile range (Q3 - Q1). A robust spread metric. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/sandbox/app/perf/lib/data-generators.ts | 237 | preview: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor.', |
| LOW | packages/sandbox/app/perf/lib/data-generators.ts | 237 | preview: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor.', |