Skip to content

Commit

Permalink
Breaking Change: Remove @primer/view-components imports and dependency (
Browse files Browse the repository at this point in the history
#2789)

* Remove @primer/view-components dependency

* Add changeset

* Add note to readme
  • Loading branch information
jonrohan authored Feb 5, 2025
1 parent 4fb64f5 commit 4113637
Show file tree
Hide file tree
Showing 60 changed files with 8 additions and 480 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-rivers-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/css': major
---

Remove @primer/view-components imports for styles moved to primer/view_components
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

## Documentation

> :warning: **The documentation of this repo is not maintained anymore**. Please raise any documentation-specific pull requests in [primer.style/design](https://github.com/primer/design/)
> :warning: It is encouraged that you use [primer/react](https://github.com/primer/react) and [primer/view_components](https://github.com/primer/view_components) for styling and markup.
> :warning: **The documentation of this repo is not maintained anymore**. Please raise any documentation-specific pull requests in [primer.style/design](https://github.com/primer/design/)
Our documentation site lives at [primer.style/css](https://primer.style/css). You'll be able to find detailed documentation on getting started, all of the components, our theme, our principles, and more.

Expand Down
124 changes: 0 additions & 124 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"@github/prettier-config": "^0.0.6",
"@primer/primitives": "^10.3.4",
"@primer/stylelint-config": "^13.2.3",
"@primer/view-components": "^0.36.5",
"autoprefixer": "^10.4.18",
"chokidar-cli": "^3.0.0",
"cssstats": "^4.0.5",
Expand Down
25 changes: 0 additions & 25 deletions src/alerts/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/alerts/flash.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/alerts/index.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/autocomplete/autocomplete.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/autocomplete/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// support files
@import '../support/index.scss';
@import './autocomplete.scss';
@import './suggester.scss';
1 change: 0 additions & 1 deletion src/avatars/avatar-stack.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/avatars/avatar.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/avatars/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@import '../support/index.scss';

// Avatars
@import './avatar.scss';
@import './avatar-parent-child.scss';
@import './avatar-stack.scss';
@import './circle-badge.scss';
25 changes: 0 additions & 25 deletions src/blankslate/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/blankslate/blankslate.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/blankslate/index.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/box/box.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/box/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import '../support/index.scss';
@import './box.scss';
@import './box-overlay.scss';
25 changes: 0 additions & 25 deletions src/breadcrumb/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/breadcrumb/breadcrumb.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/breadcrumb/index.scss

This file was deleted.

4 changes: 0 additions & 4 deletions src/core/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
// Core modules
@import '../base/index.scss';
@import '../box/index.scss';
@import '../breadcrumb/index.scss';
@import '../buttons/index.scss';
@import '../table-object/index.scss';
@import '../forms/index.scss';
@import '../layout/index.scss';
@import '../links/index.scss';
@import '../navigation/index.scss';
@import '../pagination/index.scss';
@import '../tooltips/index.scss';
@import '../truncate/index.scss';
@import '../overlay/index.scss';

// Utilities always go last so that they can override components
@import '../utilities/index.scss';
25 changes: 0 additions & 25 deletions src/dropdown/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/dropdown/dropdown.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/dropdown/index.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/forms/FormControl.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/forms/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
@import './form-group.scss';
@import './input-group.scss';
@import './radio-group.scss';
// new pvc components
@import './FormControl.scss';
1 change: 0 additions & 1 deletion src/labels/counters.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/labels/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@import '../support/index.scss';
@import './mixins.scss';
@import './issue-labels.scss';
@import './labels.scss';
@import './states.scss';
@import './counters.scss';
1 change: 0 additions & 1 deletion src/labels/labels.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/labels/states.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/layout/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
@import './container.scss';
@import './grid.scss';
@import './grid-offset.scss';
@import './layout.scss';
@import './page-layout.scss';
@import './stack.scss';
1 change: 0 additions & 1 deletion src/layout/layout.scss

This file was deleted.

Loading

0 comments on commit 4113637

Please sign in to comment.