MCPcopy Index your code
hub / github.com/astroturfcss/astroturf

github.com/astroturfcss/astroturf @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
262 symbols 725 edges 148 files 3 documented · 1% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

astroturf

astroturf lets you write CSS in your JavaScript files without adding any runtime layer, and with your existing CSS processing pipeline.

  • Zero runtime CSS-in-JS. Get many of the same benefits as CSS-in-JS, but without the loss of flexibility in requiring framework-specific CSS processing, and while keeping your CSS fully static with no runtime style parsing.
  • Use your existing tools – Sass, PostCSS, Less – but still write your style definitions in your JavaScript files
  • Whole component in the single file. Write CSS in a template literal, then use it as if it were in a separate file

Checkout the docs for examples and API details: https://astroturfcss.github.io/astroturf/

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
www/src/Layout.tsx
ReactClassProps1 (Interface)
(no doc)
types/test.tsx
PropsType (Interface)
(no doc)
test/__file_snapshots__/cli__out_file__typescript.tsx
PropsType (Interface)
(no doc)
test/fixtures/typescript.tsx
ResolvedImport (Interface)
(no doc)
src/types.ts
Dependency (Interface)
(no doc)
src/utils/resolveDependency.ts
Options (Interface)
(no doc)
src/features/styled-component.ts
StyledComponent (Interface)
(no doc)
src/runtime/react.d.ts

Core symbols most depended-on inside this repo

styled
called by 70
test/__file_snapshots__/issue-365-js.js
testAllRunners
called by 30
test/helpers.js
run
called by 17
test/helpers.js
buildLoaderRequest
called by 14
test/helpers.js
format
called by 13
test/helpers.js
css
called by 9
src/runtime/index.js
getNameFromPath
called by 8
src/utils/getNameFromPath.ts
withComponent
called by 8
src/runtime/react.d.ts

Shape

Function 188
Interface 34
Class 22
Method 18

Languages

TypeScript100%

Modules by API surface

src/VirtualModulePlugin.ts13 symbols
types/test.tsx12 symbols
src/utils/buildTaggedTemplate.ts12 symbols
test/helpers.js11 symbols
test/__file_snapshots__/integration-js.js11 symbols
test/__file_snapshots__/issue-365-js.js10 symbols
src/features/css-prop.ts10 symbols
src/utils/loaders.ts9 symbols
src/types.ts9 symbols
src/cli.ts9 symbols
src/utils/ImportInjector.ts8 symbols
src/vite-plugin.ts6 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add astroturf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page