@types/compass-vertical-rhythm
@types/compass-vertical-rhythm
npm i @types/compass-vertical-rhythm
@types/compass-vertical-rhythm

@types/compass-vertical-rhythm

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.4.2 (see all)License:MITTypeScript:Built-In
npm i @types/compass-vertical-rhythm
Readme

Installation

npm install --save @types/compass-vertical-rhythm

Summary

This package contains type definitions for compass-vertical-rhythm (https://github.com/KyleAMathews/compass-vertical-rhythm).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compass-vertical-rhythm.

index.d.ts

// Type definitions for compass-vertical-rhythm 1.4
// Project: https://github.com/KyleAMathews/compass-vertical-rhythm
// Definitions by: Luis Rodrigues <https://github.com/goblindegook>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

export = compassVerticalRhythm;

declare namespace compassVerticalRhythm {
    interface Options {
        baseFontSize?: string | undefined;
        baseLineHeight?: number | string | undefined;
        rhythmUnit?: '%' | 'em' | 'ex' | 'ch' | 'px' | 'rem' | 'vw' | 'vh' | 'vmin' | undefined;
        defaultRhythmBorderWidth?: string | undefined;
        defaultRhythmBorderStyle?:
            | 'solid'
            | 'none'
            | 'hidden'
            | 'dashed'
            | 'dotted'
            | 'double'
            | 'groove'
            | 'ridge'
            | 'inset'
            | 'outset' | undefined;
        roundToNearestHalfLine?: boolean | undefined;
        minLinePadding?: string | undefined;
    }

    interface VerticalRhythmStyles {
        fontSize: string;
        lineHeight: string;
    }

    interface VerticalRhythm {
        rhythm(lines?: number, fontSize?: string, offset?: number): number;
        establishBaseline(): VerticalRhythmStyles;
        linesForFontSize(fontSize: string): number;
        adjustFontSizeTo(toSize: string, lines?: number | 'auto' | null, fromSize?: string): VerticalRhythmStyles;
    }
}

declare function compassVerticalRhythm(
    options: compassVerticalRhythm.Options
): compassVerticalRhythm.VerticalRhythm;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:05 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Luis Rodrigues.

Downloads/wk

509

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

204
VersionTagPublished
1.4.2
latest
1yr ago
1.4.2
ts4.7
1yr ago
1.4.2
ts4.6
1yr ago
1.4.2
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate