# @types/styled-system__core

> TypeScript definitions for @styled-system/core

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

## Install

```sh
npm install @types/styled-system__core
pnpm add @types/styled-system__core
yarn add @types/styled-system__core
bun add @types/styled-system__core
```

## 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 | 5.1.7 |
| Published | 2025-11-18 |
| First published | 2020-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 5.1.7 (latest) — 2025-11-18
- 5.1.6 (ts5.1) — 2023-11-07
- 5.1.3 (ts3.6) — 2021-07-02
- 5.1.2 (ts3.5) — 2020-09-26
- 5.1.1 (ts3.1) — 2020-07-31
- 5.1.5 — 2023-10-18
- 5.1.4 — 2023-09-25
- 5.1.0 — 2020-06-12

## README

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

export function get(obj: any, ...paths: Array<string | number>): any;

export type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Record<K, T> | T[]>;

export type Scale = ObjectOrArray<number | string>;

export interface styleFn {
    (...args: any[]): any;

    config?: object | undefined;
    propNames?: string[] | undefined;
    cache?: object | undefined;
}

export interface ConfigStyle {
    /** The CSS property to use in the returned style object (overridden by `properties` if present). */
    property?: keyof CSS.Properties | undefined;
    /**
     * An array of multiple properties (e.g. `['marginLeft', 'marginRight']`) to which this style's value will be
     * assigned (overrides `property` when present).
     */
    properties?: Array<keyof CSS.Properties> | undefined;
    /** A string referencing a key in the `theme` object. */
    scale?: string | undefined;
    /** A fallback scale object for when there isn't one defined in the `theme` object. */
    defaultScale?: Scale | undefined;
    /** A function to transform the raw value based on the scale. */
    transform?: ((value: any, scale?: Scale) => any) | undefined;
}

export interface Config {
    /** Property name exposed for use in components */
    [customStyleName: string]: ConfigStyle | boolean;
}

export function compose(...parsers: styleFn[]): styleFn;

export function system(styleDefinitions: Config): styleFn;

export function createParser(config: ConfigStyle): styleFn;

export function createStyleFunction(args: ConfigStyle): styleFn;

````

### 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 [Leo Toneff](https://github.com/bragle).

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