# @types/styletron-standard

> TypeScript definitions for styletron-standard

Latest version **2.0.6** (published 2025-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/styletron-standard
pnpm add @types/styletron-standard
yarn add @types/styletron-standard
bun add @types/styletron-standard
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2025-11-18 |
| First published | 2019-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/styletron-standard
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/styletron-standard
- npm.io page: https://npm.io/package/@types/styletron-standard

## Dependencies (1)

- [csstype](https://npm.io/package/csstype.md) ^3.2.2

## Recent versions

- 2.0.6 (latest) — 2025-11-18
- 2.0.5 (ts5.1) — 2023-11-07
- 2.0.2 (ts3.6) — 2021-07-02
- 2.0.1 (ts3.4) — 2020-07-31
- 2.0.0 (ts2.9) — 2019-05-14
- 2.0.4 — 2023-10-18
- 2.0.3 — 2023-09-25

## README

# Installation
> `npm install --save @types/styletron-standard`

# Summary
This package contains type definitions for styletron-standard (https://github.com/styletron/styletron).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/styletron-standard.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/styletron-standard/index.d.ts)
````ts
import * as CSS from "csstype";

export type Properties = CSS.Properties<string | number>;
export type FontFace = CSS.AtRule.FontFace;
export interface KeyframesPercentageObject {
    [key: string]: Properties;
}

export type KeyframesObject = KeyframesPercentageObject & {
    from?: Properties | undefined;
    to?: Properties | undefined;
};

// Unrecognized properties are assumed to be media queries
// or pseudo selectors w/ nested style objects.
// See: https://github.com/styletron/styletron-standard
export type StyleObject =
    & Properties
    & { [key in string]: Properties[keyof Properties] | StyleObject };

export interface StandardEngine {
    renderStyle(style: StyleObject): string;
    renderKeyframes(keyframes: KeyframesObject): string;
    renderFontFace(fontFace: FontFace): string;
}

export function driver(style: StyleObject, styletron: StandardEngine): string;

export function getInitialStyle(): StyleObject;

export function renderDeclarativeRules(
    style: StyleObject,
    styletrong: StandardEngine,
): StyleObject;

````

### Additional Details
 * Last updated: Tue, 18 Nov 2025 02:14:41 GMT
 * Dependencies: [csstype](https://npmjs.com/package/csstype)

# Credits
These definitions were written by [Eric Taylor](https://github.com/erictaylor).

---
_Source: https://npm.io/package/@types/styletron-standard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
