{"name":"@atlaskit/css-reset","version":"7.4.3","keywords":["atlaskit","css","ui"],"author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/css-reset@7.4.3","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"}],"homepage":"https://atlassian.design/components/css-reset","bugs":{"url":"https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues"},"dist":{"shasum":"5ef3f2e55c670f1df485cc102b2a17a6a5fb4b13","tarball":"http://registry-npm.ywwl.com/@atlaskit/css-reset/download/@atlaskit/css-reset-7.4.3.tgz","fileCount":57,"integrity":"sha512-q8dxY6jUrppWIwQUHLQhEGCO7mB+Jqkb9JBh1VtCgvTku3NT8Ssv3MgFILCkntslXtmyThoiqMcn7yPYTP4F+Q==","signatures":[{"sig":"MEQCIFkPOV/lQaQ6u57aqR/ULAZu95PjyLr83UbeSQTYKuF1AiBjh0nqyT7UUD+OlGuNI19HlthFpDdP5/+pBKJFieIEIA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118783,"size":19894,"noattachment":false,"key":"/@atlaskit/css-reset/-/@atlaskit/css-reset-7.4.3.tgz"},"main":"dist/bundle.css","_from":"file:/tmp/package-1-69d8694b-43a4c85979c531d1ead5ee30-1.tgz","types":"dist/types/index.d.ts","module":"dist/bundle.css","scripts":{"build-css":"run-ts build/js-to-css.tsx","ak-postbuild":"mkdir -p dist && cp src/bundle.css dist/bundle.css && ABS_PATH=$(pwd) && ln -sf $ABS_PATH/dist/bundle.css dist/cjs/bundle.css && ln -sf $ABS_PATH/dist/bundle.css dist/esm/bundle.css && ln -sf $ABS_PATH/dist/bundle.css dist/es2019/bundle.css"},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-69d8694b-43a4c85979c531d1ead5ee30-1.tgz","atlassian":{"team":"Design System Team","website":{"name":"CSS reset","category":"Libraries"}},"techstack":{"@repo/internal":{"styling":["emotion"],"deprecation":"no-deprecated-imports","design-system":"v1","design-tokens":["color","spacing"],"ui-components":"lite-mode"},"@atlassian/frontend":{"import-structure":"atlassian-conventions"}},"_integrity":"sha512-q8dxY6jUrppWIwQUHLQhEGCO7mB+Jqkb9JBh1VtCgvTku3NT8Ssv3MgFILCkntslXtmyThoiqMcn7yPYTP4F+Q==","repository":{"url":"git+https://bitbucket.org/atlassian/atlassian-frontend-mirror.git","type":"git"},"_npmVersion":"10.8.2","description":"A base stylesheet for the Atlassian Design System.","directories":{},"_nodeVersion":"20.20.0","atlaskit:src":"src/index.tsx","dependencies":{"@babel/runtime":"^7.0.0","@atlaskit/theme":"^23.0.0","@atlaskit/tokens":"^12.0.0"},"module:es2019":"dist/bundle.css","publishConfig":{"registry":"https://registry.npmjs.org/"},"typesVersions":{">=4.5 <4.9":{"*":["dist/types-ts4.5/*","dist/types-ts4.5/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"mkdirp":"^0.5.1","@af/root-path":"workspace:^","@af/formatting":"workspace:^","@atlaskit/docs":"^11.7.0","@atlaskit/link":"^3.4.0","@atlassian/ts-loader":"^0.1.0","@af/visual-regression":"workspace:^","@atlaskit/section-message":"^8.12.0"},"peerDependencies":{"react":"^18.2.0"},"platform-feature-flags":{},"_npmOperationalInternal":{"tmp":"tmp/css-reset_7.4.3_1775790414689_0.7467373651663651","host":"s3://npm-registry-packages-npm-production"},"readme":"# CSS reset\n\nA base stylesheet for ADG.\n\n## Installation\n\n```sh\nyarn add @atlaskit/css-reset\n```\n\n## Usage\n\n[View documentation](https://atlassian.design/components/css-reset/).\n\n## Standalone scrollbar appearance\n\nProducts that do not consume the full CSS reset can import only the harmonized scrollbar styles:\n\n```ts\nimport '@atlaskit/css-reset/scrollbars.css';\n```\n\nThe stylesheet remains inactive until the product adds `data-scrollbar-harmonisation` to the\ndocument root. Products own feature-gate evaluation and attribute cleanup. Tracks are always\ntransparent; no separate transparency attribute is needed.\n\nOnly colors change: the thumb uses `color.background.accent.gray.subtle` and the track is\ntransparent, set once with `scrollbar-color` on the root and inherited. Scrollbar size, visibility\nand overlay behavior stay native, so operating system preferences such as macOS \"When scrolling\" are\nhonored and apply live when changed. Custom WebKit scrollbar sizing is not used because browsers\nnever draw it as an overlay. Browsers without `scrollbar-color` support keep native colors. Forced\ncolors use browser colors.\n\nIn Chromium, a non-auto `scrollbar-color` disables `::-webkit-scrollbar` styles on the same element.\nComponents that own a custom WebKit scrollbar should set their own `scrollbar-color`, or\n`scrollbar-color: auto`, on their scroll container.\n\nThe subtle token has approximately 3.24:1 contrast against the white page surface in light mode and\n2.85:1 against the #1F1F21 page surface in dark mode; contrast is lower on raised and overlay\nsurfaces. This contrast is accepted for the harmonized treatment, which is not a claim of\naccessibility conformance. Painted width and allocated width are not a target-size conformance\nassessment.\n\n### Avoiding a flash of un-harmonized scrollbars on SSR pages\n\nThe attributes above are normally installed on `document.documentElement` at runtime by\n`useScrollbarHarmonisation` (`@atlaskit/app-provider/use-scrollbar-harmonisation`). On a\nserver-rendered page that hook only runs client-side, so scrollbars briefly render un-harmonized\nuntil the effect fires. Products that render `<html>` from a server-side template can instead call\n`getScrollbarHarmonisationHtmlAttrs`\n(`@atlaskit/app-provider/get-scrollbar-harmonisation-html-attrs`) and spread its result onto the\nserver-rendered `<html>` element, so the attributes — and therefore these CSS rules — are present\nfrom the very first paint.\n","publish_time":1775790414841,"_cnpm_publish_time":1775790414841,"dist-tags":{"latest":"8.4.10","next":"6.5.2"}}