Skip to content

Commit f964a34

Browse files
jryanconklinjasonleonhardrenovate[bot]WhiteSource Renovateayanapowell
authored
Particle 10.8.0 :: TAILWIND (#815)
* Add SVGO Formatter and README * feat: add tailwind to package.json * refactor: add tailwind as a dev dependency * feat: add tailwind configuration and verify * add purgecss, config and a few examples * tailwind styling now working with tailwind.config.js * Update dependency stylelint to ^13.2.0 (#766) Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com> * refactor: use tailwind instead of bootstrap and sass for welcome page * refactor: simplify styling * Refactor protons/borders to use tailwind * Override default fontFamily in tailwind.config.js * Import serif font, set font-family on all heading elements * WIP * Refactor protons/spacing to use Tailwind classes * Refactor protons/tables to use Tailwind * feat: add welcome page using tailwind * style: improve welcome header sizing * upgrade: npm audit fix complete * WIP: removing SASS/SCSS/Bootstrap without errors * WIP: removing sass and bootstrap * refactor: use tailwindo to convert the apps folder to use tailwind not bootstrap * refactor: use tailwindo to convert the source folder to use tailwind not bootstrap * refactor: remove bootstrap comment now that no longer accurate * refactor: improve whitespace formatting * refactor: improve whitespace formatting * refactor: improve whitespace formatting * Demo spacing and color vars * refactor: move styling as per managers suggestion * resolve terminal error from tailwindo conflicting with twig * resolve terminal error from tailwindo conflicting with twig list groups * resolve terminal error from tailwindo conflicting with twig type proton * resolve terminal error from tailwindo conflicting with navbar twig * refactor: improve whitespace formatting * resolve fmt error in package.json * remove test that imports file that does not exist * refactor: fmt * Refactor breakpoints * Create a hex_to_rgba twig filter to use in protons/colors demo. * refactor: improve whitespace formatting * test: fix utility class expectations to pass test * Clean up * test: resolve a few tests and comment out others for now for travis ci * Tailwind: Add color classes to code and anchor elements * refactor: improve whitespace formatting * feat: try out extend in tailwind config * test: resolve all broken tests and formatting * Tailwind: Demo tailwind fontFamily config' * Tailwind: rename file' * Tailwind: Demo tailwind fontWeight and fontStyle config' * Tailwind: Demo text size and text colors * Tailwind: improve badge styling * Tailwind: fix edge case for transparent and black * Tailwind: fix edge case for transparent and black * Tailwind: fix edge case for transparent and black for badges * Tailwind: fix whitespace for pre code tags to not overflow and start at left * Tailwind: start styling alerts with tailwind * Tailwind: improve styling alerts with tailwind * Tailwind: improve styling alerts with tailwind * Tailwind: allow partials to refresh browser on save * Tailwind: improve styling alerts with tailwind * Tailwind: improve styling breadcrumb with tailwind * Tailwind: improve styling alerts with tailwind * Tailwind: improve whitespace * Tailwind: left align tr titles * Tailwind: improve whitespace * Tailwind: improve stylelintrc to handle tailwind directive * Tailwind: improve styling buttons with tailwind * Tailwind: improve styling buttons with tailwind including fancy flex * Tailwind: improve styling buttons and dropdowns with tailwind * Tailwind: color syntax for code example blocks using googles prettyprint * Tailwind: avoid setting all classes on alert * Tailwind: improve styling buttons and dropdowns with tailwind * Tailwind: improve z-index buttons and dropdowns with tailwind * Tailwind: improve dropdowns and data driven approach * Tailwind: improve dropdowns and data driven approach * Tailwind: refactor to local dropdown styling * Tailwind: improve dropdowns and data driven approach * Tailwind: improve dropdowns and data driven approach * Tailwind: improve dropdowns and data driven approach * Tailwind: improve dropdowns and data driven approach * Tailwind: dropup working and remove old button attributes * Tailwind: beter naming for elements * Tailwind: right menu alignment working * Tailwind: dropdown start on disabling menu option * Tailwind: dropdown start on disabling, header and divider menu option * Tailwind: dropdown complete in-menu options MVP * Tailwind: dropdown menu form formating lookign good but no dropdown yet * Tailwind: cleanup whitespace and comments * Update Proton Demos * Refactor Drupal Theme and Add Module * Revise Button Pattern * Revise Button Documentation * Revise Breadcrumb and Demo * Revise Grids * Revise Card, Grid, and Pagination Patterns * Update Articles and Vue Widgets * Update Card Grids * Update Footer * Revise Removed Line Breaks * Update Directory Paths * Refactor New DS Directory Structure * Update Line Break in Namespace * Add GitHub Directory * Rename DS Apps to Lib * Fix Spacing Errors * Remove Contributing Pre-11 * Feedback Pass * Feedback Pass * Delete SCSS File from Generator * Feedback Pass * Remove Unit Whitelist * Stylelint Updates * WIP: Sync Config * package updates * Compile debugging * Move styleint out of webpack and into postcss, fix css loaders to combine correctly, nuke vscode folder * Update Tailwind Purge Config + Svg Spritemap Plugin * Update SVG to Tailwind Util * DS Only Tailwind Purge * Comment on Whitelist * Update Branding for SVG Change * Update to Use Font Sans Key * Resolve Package Lock Issues * Update all min/patch versions * Upgrade terser-webpack-plugin to ^3 * Move deps to appropriate dev/regular dependencies in package.json * Upgrade eslint to 7, proper ordering in package.json * Upgrade jest and babel-jest to 26 * Update new-component generator deps * npm audit fix, update libraries to pull out of drupal aggregation, let tailwind look at js for purge Co-authored-by: Jason Leonhard <leonhard.jason@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com> Co-authored-by: Ayana Powell <ayanapowell1@gmail.com> Co-authored-by: Christopher Bloom <bloomcb@gmail.com>
1 parent cf1b848 commit f964a34

370 files changed

Lines changed: 14354 additions & 23005 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [frontend@phase2technology.com](mailto:frontend@phase2technology.com). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Pull Request
2+
3+
Closes Issue #X
4+
5+
<!--
6+
These markdown comments are for description only. They can be deleted.
7+
8+
Please submit pull requests against the develop branch.
9+
10+
Follow the existing code style. Check the tests succeed, including lint.
11+
npm run test
12+
npm run lint
13+
-->
14+
15+
## Issue Description
16+
17+
<!--
18+
Describe what problem you're solving. Link the issue from the issues tab.
19+
-->
20+
21+
## Summary of Changes
22+
23+
<!--
24+
How did you solve the problem? Did you update any documentation this affected?
25+
-->

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Compiled files
22
dist/
3-
_icons-generated.scss
43
dependencyGraph.json
54
patterns.zip
65

@@ -16,7 +15,6 @@ node_modules
1615
vendor
1716

1817
# Generated files
19-
*.sass-cache/
2018
.eslintcache
2119
*unison.*
2220

.prettierignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ tools/new-component/templates/
99

1010
package.json
1111
package-lock.json
12-
13-
_icons-generated.scss
14-
15-
sass-variables.json

.stylelintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ vendor/
55

66
dist/
77
pattern-lab/
8-
9-
_icons-generated.scss

.stylelintrc

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
{
22
"extends": [
3+
"stylelint-config-recommended",
34
"stylelint-config-prettier"
45
],
5-
"plugins": [
6-
"stylelint-scss"
7-
],
86
"rules": {
97
"indentation": 2,
108
"declaration-colon-space-after": "always",
119
"declaration-no-important": true,
1210
"max-nesting-depth": 3,
1311
"selector-max-specificity": "0,3,3",
1412
"selector-max-id": 0,
15-
"scss/at-extend-no-missing-placeholder": true,
16-
"scss/selector-no-redundant-nesting-selector": true,
1713
"at-rule-no-vendor-prefix": true,
1814
"media-feature-name-no-vendor-prefix": true,
1915
"property-no-vendor-prefix": true,
2016
"selector-no-vendor-prefix": true,
21-
"value-no-vendor-prefix": true
17+
"value-no-vendor-prefix": true,
18+
"at-rule-no-unknown": [
19+
true,
20+
{
21+
"ignoreAtRules": [
22+
"tailwind",
23+
"apply",
24+
"responsive",
25+
"variants",
26+
"screen"
27+
]
28+
}
29+
]
2230
}
2331
}

.svgo.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
multipass: true
2+
3+
plugins:
4+
- addAttributesToSVGElement: false
5+
- addClassesToSVGElement: false
6+
- cleanupAttrs: true
7+
- cleanupEnableBackground: true
8+
- cleanupIDs: true
9+
- cleanupListOfValues: true
10+
- cleanupNumericValues:
11+
floatPrecision: 2
12+
- collapseGroups: true
13+
- convertColors: true
14+
- convertPathData: true
15+
- convertShapeToPath: true
16+
- convertStyleToAttrs: true
17+
- convertTransform: true
18+
- mergePaths: true
19+
- minifyStyles: true
20+
- moveElemsAttrsToGroup: true
21+
- moveGroupAttrsToElems: true
22+
- removeAttrs: false
23+
- removeComments: true
24+
- removeDesc: true
25+
- removeDimensions: true
26+
- removeDoctype: true
27+
- removeEditorsNSData: true
28+
- removeElementsByAttr: false
29+
- removeEmptyAttrs: true
30+
- removeEmptyContainers: true
31+
- removeEmptyText: true
32+
- removeHiddenElems: true
33+
- removeMetadata: true
34+
- removeNonInheritableGroupAttrs: true
35+
- removeRasterImages: false
36+
- removeStyleElement: true
37+
- removeTitle: true
38+
- removeUnknownsAndDefaults: true
39+
- removeUnusedNS: false
40+
- removeUselessDefs: true
41+
- removeUselessStrokeAndFill: true
42+
- removeViewBox: false
43+
- removeXMLNS: false
44+
- removeXMLProcInst: true
45+
- sortAttrs: false
46+
- transformsWithOnePath: true
47+
48+
js2svg:
49+
pretty: true
50+
indent: ' '

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)