Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@procore/core-css

procore23kSEE LICENSE IN LICENSE10.27.4

The building blocks of the Procore universe.

stylesheets, css framework, css, scss, library, procore

readme

CORE CSS npm npm

An implementation of Procore's Web Design Guidelines.

Requirements

Node 6+ NPM or Yarn

Background

Our styles are organized according to Inverted Triangle CSS. ITCSS organizes stylesheets by specificity. Read the article linked above for more information.

Developing

To get started, type the following from the root directory:

yarn
yarn dev

Testing

Testing currently consists of Jest snapshot testing on our React components. To run the test suite use the following command:

yarn test

Building

yarn build

Once the project is done building, the docs can be viewed at build/docs/index.html

Contributing and Styleguide

Bug reports and pull requests are welcome on GitHub at https://github.com/procore/core. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

In lieu of a formal styleguide, we use husky to create a precommit hook, which executes prettier on any git staged files determined by lint-staged.

License

The package is available under the Procore Developers License

About Procore

Procore Logo

CORE Icons is maintained by Procore Technologies.

Procore - building the software that builds the world.

Learn more about the #1 most widely used construction management software at procore.com

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

10.27.4 (2022-05-16)

Note: Version bump only for package @procore/core-css

10.27.3 (2022-04-25)

Note: Version bump only for package @procore/core-css

10.27.2 (2022-04-08)

Note: Version bump only for package @procore/core-css

10.27.1 (2022-03-30)

Note: Version bump only for package @procore/core-css

10.27.0 (2022-03-28)

Note: Version bump only for package @procore/core-css

10.26.0

  • Bad publish. DO NOT USE

10.23.0 (2022-02-15)

Note: Version bump only for package @procore/core-css

10.22.0 (2022-02-01)

Note: Version bump only for package @procore/core-css

10.20.0 (2021-12-16)

Note: Version bump only for package @procore/core-css

10.18.0 (2021-11-09)

Note: Version bump only for package @procore/core-css

10.17.0 (2021-10-27)

Bug Fixes

  • packages/core-css/package.json to reduce vulnerabilities (#9502) (4cb4db7)

10.16.0 (2021-10-01)

Note: Version bump only for package @procore/core-css

10.14.0 (2021-08-23)

Note: Version bump only for package @procore/core-css

10.13.0 (2021-08-04)

Note: Version bump only for package @procore/core-css

10.11.0 (2021-07-01)

Note: Version bump only for package @procore/core-css

10.10.0 (2021-06-11)

Note: Version bump only for package @procore/core-css

10.8.0 (2021-05-07)

Bug Fixes

  • remove ~ import in variables that breaks ts builds (#8753) (c49d895)

10.7.0 (2021-04-17)

Bug Fixes

  • remove FileList component (767e72d)
  • revert FileList removal (02b25d5)

Features

10.6.0 (2021-03-30)

Features

10.5.0 (2021-03-15)

Features

  • [GLUE-2825] Refactor Input, TextArea to styled-components (#8198) (e5e724e)

10.4.0 (2021-03-10)

Bug Fixes

10.3.0 (2021-03-02)

Note: Version bump only for package @procore/core-css

10.0.1 (2021-02-10)

Bug Fixes

10.0.0 (2021-02-09)

Bug Fixes

  • aligning tokens in multiselect (#8140) (d866451)
  • fix icon usage and table group header font weight (94165ee)
  • fix line-height on select label (#8153) (4f0ac6a)
  • V10 Form Icon Alignment and Traditional Label, Thumbnail Label ellipsis, DateSelect Height (#8160) (cd807c1)

  • feat!: DetailPage width XL (#8154) (60ee6bd), closes #8154

Features

BREAKING CHANGES

  • width 1440 is now xl, not lg
  • Deprecations|

  • chore: update spacing for detail page section header actions

affects: @procore/core-css

  • chore: add deprecation notices

affects: @procore/core-react

  • chore: add default export back to Notation

affects: @procore/core-react

  • chore: remove unused tsconfig

affects: @procore/core-react

Co-authored-by: Christian Rivera chris.arevir@gmail.com

9.8.0 (2021-01-29)

Bug Fixes

9.7.0 (2021-01-16)

Bug Fixes

9.6.0 (2020-12-18)

Bug Fixes

  • [GLUE-2643] Form wrap for run-on strings (#7970) (f1827b1)
  • [GLUE-2868] - Table Textarea styling (#7948) (bfc03c0)
  • Form Column and Specific Story for Word Wrap (#8002) (6b5ac1d)
  • WXP Detail Page allow action only layout with them on right (#8004) (45c1ccf)

Features

  • [Glue 2785] Flex reverse and some layout stories (#7928) (cf00b16)
  • [GLUE-2778] Form and Sections No Max Width (#7876) (4307cca)

9.5.0 (2020-12-03)

Bug Fixes

  • [GLUE-2810] PillSelect disabled with value will not open (#7923) (bf47a3f)

Features

  • [GLUE-2754] [GLUE-2790] handle multiple dropzone errors (#7802) (df3ab51)

9.4.0 (2020-11-23)

Bug Fixes

9.3.0 (2020-11-06)

Bug Fixes

  • [GLUE-2719] Number Input Incrementor Buttons procore.app.css reset (#7772) (9843524)
  • [GLUE-2747] - Token alignment in PillSelect (#7779) (621ecf0)
  • Follow-up fixes for Pill Select component (#7749) (117c4fe)

Features

  • [GLUE-2597] - Disabled state for MenuImperative.Item (#7786) (474e94b)
  • [GLUE-2720] - Truncation Tooltip in Select (#7759) (1ee15a5)

9.2.2 (2020-10-29)

Bug Fixes

9.2.0 (2020-10-27)

Bug Fixes

Features

  • [GLUE-2598] - introduce Menu Flyout component (#7660) (53a7760)

9.1.0 (2020-10-23)

Bug Fixes

  • update icon colors on search and typeahead (#7683) (de27f65)

Features

  • [GLUE-2528] detail page read and edit states updates (#7520) (76ed366)
  • [GLUE-2634] - Introduce Keyboard Navigation For Thumbnail List (#7689) (aa506dd)
  • add hideDropzone docs example, fix cursor styling (#7715) (2b92735)
  • core-react: Fix FileSelect.GridSource issues (#7612) (6f35d7d)

9.0.0 (2020-10-09)

Bug Fixes

chore

  • bumping Typescript to latest version (f82e5d9)
  • remove deprecated table-cells (4f9a8f8)

Features

BREAKING CHANGES

  • remove variant, add compact prop, add subcomponents for presets

  • feat: update stories

affects: @procore/core-react

  • feat: refactor emptystate, add subcomponents

affects: @procore/core-react

Rewrite EmptyState to use context for compact mode Add subcomponents for NoItems, NoResults, and RRecycleBin

  • removes the one-off "src" values from EmptyState.Image in favor of subcomponents

  • chore: update grid

affects: @procore/core-react

  • chore: remove old props from docs

affects: @procore/core-docs, @procore/core-react

  • chore: address cr

affects: @procore/core-react

  • chore: fix emptystate in fileexplorer

affects: @procore/core-react

  • chore: update EmptyState docs

affects: @procore/core-docs

  • chore: add migration guide

affects: @procore/core-docs, @procore/core-react

  • Core-scripts Type-checking Breaking Changes
  • Removing deprecated table-cells components and css

8.25.0 (2020-10-01)

Bug Fixes

Features

8.24.0 (2020-09-28)

Bug Fixes

  • Form Inline Error Style and Validation Tweak (#7604) (f08b3e0)

Features

Reverts

8.23.0 (2020-09-10)

Bug Fixes

  • [GLUE-2511] WXPDetailPage - Multiple Content Cards (#7504) (b373dcc)

Features

8.22.0 (2020-08-28)

Bug Fixes

  • fixes disabled text color for select placeholder text (#7451) (2fd56ec)

Features

8.21.0 (2020-08-13)

Features

8.20.0 (2020-07-31)

Bug Fixes

  • [glue-2454] Banner text alignment when no title (#7325) (e6fa4bd)
  • [GLUE-2525] Increase modal specificity (#7371) (ef7eaf3)

Features

  • [GLUE-2492] Detail Page action buttons and v2 docs (#7352) (ac28e6d)

8.19.0 (2020-07-21)

Bug Fixes

  • remove max height from toast and update guidelines text (#7323) (0822bb5)

Features

  • [Glue 2284] [Glue 2286] Add RadioButtons and Checkboxes to Form (#7221) (91990ef), closes #5351

8.18.3 (2020-07-16)

Bug Fixes

  • [GLUE-2124] top left portal interrupts pointer events (#7267) (d272fe6)

8.18.0 (2020-07-13)

Bug Fixes

  • [GLUE-2449] use shadow for the focus style to fix siblings position (#7202) (9b2f90a)

Features

  • [GLUE-1928] Introduce FileTree component (#6389) (c210f33)
  • [GLUE-2294] Form Text Area Display Blank Space (#7032) (c318c9b)

8.17.0 (2020-06-26)

Bug Fixes

  • [GLUE-2325] don't use default scss hsl since it has lossy hex conversion (#6965) (1b2c8f0)
  • fix scss focus mixin (#5921) (c6f7957)

Features

8.16.1 (2020-06-25)

Note: Version bump only for package @procore/core-css

8.16.0 (2020-06-16)

Bug Fixes

  • dark mode corrections on tabs (#6937) (17cc1e5)
  • core-css: fix focus (7bd8c4c)
  • core-css: fix IE11 (407c087)
  • core-css: use font-size from spec (83ecdc2)
  • core-react, core-css: address review comments (7ff560b)

Features

  • core-css: add core focus styles to link (1236b90)
  • core-react, core-css: implement FileList component (245f728)
  • core-react,core-docs,core-css: introduce FileAttacher component (66ee19d)

8.15.0 (2020-06-04)

Bug Fixes

Features

  • [GLUE-2184][glue-2192] Paragraph and Unordered List (#5431) (8a3d640)

8.14.0 (2020-05-21)

Features

8.13.0 (2020-05-20)

Bug Fixes

Features

  • [GLUE-1929] Token List component (#6222) (cc92530)
  • core-react: Add "clickable" Thumbnail API to allow preventing hover UI effects (#6605) (a1507b5)

8.12.0 (2020-05-08)

Bug Fixes

  • behavior correction: [GLUE-2191] Prevent final animation on re-mount and re-visible FileToken component (#6503) (41f4668)
  • behavior correction: Prevent final animation of ProgressBar component on mounting (#6475) (f48a1c5)
  • Thumbnail issues (#6425) (caf705d)
  • behavior correction: Preventing of extra animation after ProgressBar component re-rendering (#6379) (9779311)
  • deps: update dependency style-loader to v1.2.1 (#6437) (21e2707)

Features

  • [GLUE-2102] hsl color palette (#6402) (9d90486)
  • [GLUE-2219] update secondary button colors and a few other colors (#6510) (d13b5bc), closes #6505

8.11.0 (2020-04-27)

Bug Fixes

  • deps: update dependency css-loader to v3.5.3 (#6405) (2fa2124)
  • deps: update dependency style-loader to v1.1.4 (#6346) (6c39c35)
  • deps: update dependency style-loader to v1.2.0 (#6406) (952987e)
  • [GLUE-2108] increase zindex of spinner components by 1 (#6314) (dbb76a5), closes #5725
  • [GLUE-2136][glue-1963] Form Style Updates and More Docs (#6292) (be0a75c)

Features

8.10.0 (2020-04-10)

Bug Fixes

Features

  • [GLUE-2024] Core React Form (#6055) (f4e353d)
  • [GLUE-2095] Update means of user interaction for ActionDropdown (#6158) (1bec1dd)
  • core-react,core-docs,core-css: introduce Thumbnail components (#5807) (#6232) (7a5227f)
  • [GLUE-2019] - Banner Component Update (#6080) (56b520d)
  • component variables 3 table files spinner (#6207) (c9ae385)

8.9.0 (2020-03-26)

Bug Fixes

  • action css not being exported properly from core-css (#6036) (7870da7)

Features

  • [GLUE-1927] ProgressBar component implementation (#5886) (e595fd5)
  • [GLUE-2048] - Action Dropdown Component (#6077) (2ad83b5)
  • color updates for 2020 with percy regression (#5898) (6159eb5)
  • Component Variables 2: Form inputs, validation, and more typography (#6071) (ceefa0c)

8.8.0 (2020-03-05)

Features

  • [GLUE-1911] introduce GroupSelect component (#5633) (cf6d7aa)
  • [GLUE-1986] introduce Action component (#5864) (42cd52c)
  • Component Variables 1: Button, Dropdowns, Tab Links (#5946) (025a454)

8.7.0 (2020-02-28)

Bug Fixes

Features

  • [GLUE-1831] Contact Item component (#5631) (1f23d68)
  • change secondary button bg from transparent to white (#5945) (08776b4)

8.6.0 (2020-02-18)

Bug Fixes

  • deps: update dependency stylelint to v13.1.0 (#5806) (83c9093)
  • deps: update dependency stylelint to v13.2.0 (#5842) (9ee4383)

Features

8.4.0 (2020-02-06)

Bug Fixes

Features

8.3.0 (2020-01-27)

Bug Fixes

  • deps: update dependency css-loader to v3.4.2 (#5528) (1ba5892)
  • deps: update dependency sass-loader to v8.0.1 (#5527) (a703bd3)
  • deps: update dependency sass-loader to v8.0.2 (#5543) (34b6c59)
  • deps: update dependency style-loader to v1.1.3 (#5604) (3d9790b)

8.2.0 (2020-01-09)

Bug Fixes

  • deps: update dependency css-loader to v3.4.1 (#5488) (0e7153c)
  • deps: update dependency style-loader to v1.1.2 (#5472) (0573ac5)
  • deps: update dependency webpack to v4.41.5 (#5479) (013c399)
  • [GLUE-1801] Checkbox No Paragraph Tag (#5351) (040b476)
  • deps: update dependency css-loader to v3.4.0 (#5332) (06c7380)
  • deps: update dependency mini-css-extract-plugin to v0.8.1 (#5426) (8908aad)
  • deps: update dependency mini-css-extract-plugin to v0.8.2 (#5427) (2cfcdbe)
  • deps: update dependency mini-css-extract-plugin to v0.9.0 (#5454) (c57dc82)
  • deps: update dependency style-loader to v1.0.2 (#5424) (181e1a6)
  • deps: update dependency style-loader to v1.1.1 (#5453) (d4c0c06)
  • deps: update dependency stylegator to v0.20.1 (#5352) (be28d5e)
  • deps: update dependency webpack to v4.41.3 (#5412) (d7e92d9)
  • deps: update dependency webpack to v4.41.4 (#5444) (20572b0)

Features

Reverts

  • reverts the work done on modal to allow it to scroll again (#5355) (90bb9fd)

8.1.0 (2019-12-03)

Bug Fixes

  • deps: update dependency style-loader to v1.0.1 (#5328) (cbe66a8)

Features

  • [GLUE-818] Inline Editable Datepicker Cell (#4992) (1f85521)

8.0.1 (2019-11-18)

Note: Version bump only for package @procore/core-css

8.0.0 (2019-11-15)

Bug Fixes

Features

7.21.3 (2019-11-11)

Bug Fixes

  • use vh instead of px for overlay max-height (#5168) (c3764f8)

7.21.1 (2019-10-17)

Note: Version bump only for package @procore/core-css

7.21.0 (2019-10-16)

Bug Fixes

  • deps: update dependency webpack to v4.41.1 (#5024) (79dff2a)
  • deps: update dependency webpack to v4.41.2 (#5044) (b63fa86)

Features

7.20.0 (2019-10-03)

Bug Fixes

  • [GLUE-1543] Explicit button lineheight (#4805) (4e0f019)
  • inherit font-family to fix MultiSelect search alignment (#4948) (c57cdb4)
  • remove padding override on select/input/textarea cells (#4923) (05624b2)
  • deps: update dependency webpack to v4.41.0 (#4890) (e727ab3)