judicialcouncil / jcc_storybook
JCC Storybook is a Storybook driven base theme for Drupal.
Installs: 128 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 0
Language:JavaScript
Type:drupal-theme
Requires
- drupal/components: ^2.0
- drupal/core: ^8 || ^9 || ^10
- dev-master
- 0.57.19
- 0.57.18
- 0.57.17
- 0.57.16
- 0.57.15
- 0.57.14
- 0.57.13
- 0.57.12
- 0.57.11
- 0.57.10
- 0.57.9
- 0.57.8
- 0.57.7
- 0.57.6
- 0.57.5
- 0.57.4
- 0.57.3
- 0.57.2
- 0.57.1
- 0.56.15
- 0.56.14
- 0.56.13
- 0.56.12
- 0.56.11
- 0.56.10
- 0.56.9
- 0.56.8
- 0.56.7
- 0.56.6
- 0.56.5
- 0.56.4
- 0.56.3
- 0.56.2
- 0.56.1
- 0.55.40
- 0.55.39
- 0.55.38
- 0.55.37
- 0.55.36
- 0.55.35
- 0.55.34
- 0.55.33
- 0.55.32
- 0.55.31
- 0.55.30
- 0.55.29
- 0.55.28
- 0.55.27
- 0.55.26
- 0.55.25
- 0.55.24
- 0.55.23
- 0.55.22
- 0.55.21
- 0.55.20
- 0.55.19
- 0.55.18
- 0.55.17
- 0.55.16
- 0.55.15
- 0.55.14
- 0.55.13
- 0.55.12
- 0.55.11
- 0.55.10
- 0.55.9
- 0.55.8
- 0.55.7
- 0.55.6
- 0.55.5
- 0.55.4
- 0.55.3
- 0.55.2
- 0.55.1
- 0.55.0
- 0.54.42
- 0.54.41
- 0.54.40
- 0.54.39
- 0.54.38
- 0.54.37
- 0.54.36
- 0.54.35
- 0.54.34
- 0.54.33
- 0.54.32
- 0.54.31
- 0.54.30
- 0.54.29
- 0.54.28
- 0.54.27
- 0.54.26
- 0.54.25
- 0.54.24
- 0.54.23
- 0.54.22
- 0.54.21
- 0.54.20
- 0.54.19
- 0.54.18
- 0.54.17
- 0.54.16
- 0.54.15
- 0.54.14
- 0.54.13
- 0.54.12
- 0.54.11
- 0.54.10
- 0.54.9
- 0.54.8
- 0.54.7
- 0.54.6
- 0.54.5
- 0.54.4
- 0.54.3
- 0.54.2
- 0.54.1
- 0.54.0
- 0.53.7
- 0.53.6
- 0.53.5
- 0.53.4
- 0.53.3
- 0.53.2
- 0.53.1
- 0.53.0
- 0.52.0
- 0.51.1
- 0.51.0
- 0.50.0
- 0.49.6
- 0.49.5
- 0.49.4
- 0.49.3
- 0.49.2
- 0.49.1
- 0.49.0
- 0.48.0
- 0.47.4
- 0.47.3
- 0.47.2
- 0.47.1
- 0.47.0
- 0.46.2
- 0.46.1
- 0.46.0
- 0.45.1
- 0.45.0
- 0.44.1
- 0.44.0
- 0.43.2
- 0.43.1
- 0.43.0
- 0.42.0
- 0.41.2
- 0.41.1
- 0.41.0
- 0.40.0
- 0.39.3
- 0.39.2
- 0.39.1
- 0.39.0
- 0.38.0
- 0.37.2
- 0.37.1
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.3
- 0.33.2
- 0.33.1
- 0.33.0
- 0.32.0
- 0.31.3
- 0.31.2
- 0.31.1
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.1
- 0.24.0
- 0.23.8
- 0.23.7
- 0.23.6
- 0.23.5
- 0.23.4
- 0.23.3
- 0.23.2
- 0.23.1
- 0.23.0
- 0.22.1
- 0.22.0
- 0.21.1
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.4
- 0.16.3
- 0.16.2
- dev-ui-fixes
- dev-bugfix/phase2-issues
- dev-COURTS-318-las-buttonfix
- dev-COURTS-310-fix-wrap
- dev-hotfix/alerts-drupal-spacing
- dev-COURTS-318-hover-state
- dev-bugfix/COURTS-271--card-darkest-primary-missing
- dev-COURTS-273-cssfixes
- dev-feature/COURTS-294--alerts-update
- dev-COURTS-273-padding-fix
- dev-feature/powerbi-hangover-0fix
- dev-feature/COURTS-271--adjust-bgcolor-options
- dev-bugfix/COURTS-289--legacy-green-card
- dev-COURTS-273-news-card-changes
- dev-feature/COURTS-277-spacing-tuning
- dev-fix/fix-accessibility-for-navtrigger
- dev-fix/fix-accessibility-setups-on-nav-and-tab-components
- dev-feature/COURTS-291--alert-adjustments
- dev-feature/COURTS-283-accordions-spacing
- dev-bugfix/clickable-card-text-color-regression
- dev-bugfix/cards-actions-and-inverse-colors
- dev-bugfix/card-trial-fixes
- dev-feature/COURTS-265--alert-updates
- dev-fix/find-my-court-feedback
- dev-deployment/20241101
- dev-epic
- dev-COURTS-215-popular-links
- dev-striped-aligned-card-padding-adjustment
- dev-inline-form-css
- dev-feature/COURTS-229--deep-linking-tabs--query-attribute-based
- dev-COURTS-267-align-filter
- dev-fix/footer-focus-link-style-fix
- dev-datavisualizationembed-feedback
- dev-datavisaulization-ratio
- dev-fix/COURTS-252--footer-lower-nav-style-updates
- dev-data-visualization-embed-feedback
- dev-webform-input-fix
- dev-datavisualization-edits
- dev-COURTS-132-webform-telephone-label-fix
- dev-COURTS-132-itc-webform-changes
- dev-fix/FIX--flatnav-pager-and-viewresult-style-updates
- dev-items-per-page-update
- dev-fix/nav-overflow-fix-and-hero-hangover-brow-empty-fix
- dev-feature/COURTS-159-powerbi
- dev-fix/footer-lower-element-fixes-sept-2024
- dev-fix/COURTS-236--spacing-on-first-view-results-item-for-advisory-bodies
- dev-update/storybook-update-including-COURTS-230-body-fix
- dev-feature/multi-demos
- dev-develop
- dev-feature/COURTS-162--header-and-mobile-nav-rebuild
- dev-feature/rulesformatting-updates
- dev-COURTS-127-align-images
- dev-feature/courts-136-anchor-accordion-jump
- dev-feature/DCAS-328-pre-open-accordions
- dev-feature/bef-update
- dev-feature/COURTS-12-facilities
- dev-feature/COURTS-13-no-results-message-styling
- dev-update/rules-formatting-table-css-updates
- dev-feature/COURTS-13-items-per-page
- dev-hotfix/views-results-margin
- dev-feature/rules-formatting-for-tables
- dev-COURTS-11--rulesformatting-tweaks
- dev-feature/COURTS-13-advisory-body-styles
- dev-fix/cleanup-of-courts-13-view-grouping-and-facilities-list-labels
- dev-feature/COURTS-13-advisory-bodes-events
- dev-feature/facilities-fixes
- dev-DCAS-281-271--button-visited-color-fix-email-icon-size-fix
- dev-feature/link-visited-color-adjustment
- dev-DCAS-281--e-mail-icon-is-tiny
- dev-DCAS-271--platform-update-visited-link-color-doesnt-change-when-a-link-has-been-clicked
- dev-DCAS-277--teaser-and-news-list-read-more-link
- dev-body-wrap-fix
- dev-feature/DCAS-262-global-focus
- dev-DCAS-263-news-variant-updates
- dev-feature/DCAS-262-focus-elements
- dev-DCAS-260--RFP-print-share-link-placement-fix
- dev-DCAS-70-257-fixes
- dev-DCAS-70-fixes
- dev-COURTS-6--rfp-components-work-including-sidebarlists-and-blurbbox
- dev-feature/DACS-225-color-palette-update-cards-adjustment
- dev-feature/DACS-225-color-palette-update-cards
- dev-DCAS-254-icons-on-cards-are-rendering-really-tiny
- dev-DCAS-70-color-changes
- dev-feature/DACS-225-color-palette-update
- dev-feature/DCAS-247-adjustments
- dev-feature/DCAS-247-iframe-spacing-issues
- dev-feature/hero-hangover-and-card-adjustments
- dev-DCAS-70-news-variant-fixes
- dev-DCAS-70-media-alignmentfix
- dev-DCAS-239-extra-hr-rule
- dev-DCAS-154-arrow
- dev-DCAS-70-news-variant-review-fixes
- dev-DCAS-239-fix-extra-hr-rule
- dev-DCAS-232-alt-images-blank-avatar
- dev-feature/DCAS-221-paragraphs-into-bullets
- dev-fix/inline-child-svg-broken-mask
- dev-DCAS-166-fix-php-and-twig-warnings-and-notices
- dev-DCAS-154-button-styles
- dev-DCAS-177--add-padding-to-active-label-on-form-element
- dev-DCAS-215-fix-search-form-padding-to-prevent-menu-hover-effect
- dev-DCAS-208-remove-no-content-text-from-teaserpluslist-component
- dev-DCAS-70-add-condition-for-overlay
- dev-DCAS-198-heading-alignment-in-layout-sections
- dev-DCAS-70-news-header-changes
- dev-DCAS-186-fix-margin
- dev-DCAS-192-fix-dropdown
- dev-feature/dcas-197
- dev-fix/Improved-detectWrap-code-fixes-to-js-errors
- dev-DCAS-186-add-hr-viewresult
- dev-DCAS-70-news-item-template
- dev-DCAS-176-containers-empty
- dev-DCAS-173-add-aria-label
- dev-DCAS-192-fix-hidden-dropdown
- dev-DCAS-184-accordion-bugfix
- dev-DCAS-155-spacing-around-accordions-and-all-content-elements
- dev-DCAS-155-margin-space-around-accordion-block
- dev-update/style-update-for-primary-nav-alternate-active-trail
- dev-feature/DCAS-128-left-nav-showing-too-many-pages
- dev-DCAS-148-storybook-update-the-breadcrumb-design
- dev-DCAS-143-content-moderation-form-styles
- dev-feature/LWR-70-messenger-block
- dev-update/style-fixes-for-body-type-content
- dev-DCAS-91-114-120-style-updates-and-fixes
- dev-fix/accordion-js
- dev-DCAS-70/news-items-template
- dev-styling-edits-to-accordions
- dev-update/style-tweaks-to-forms-and-news-publication-views
- dev-fix/legal-rule-formatting-list-padding
- dev-feature/DCAS-108-accordion-adjustment
- dev-fix/javascript-error-on-accordion-expand-collapse
- dev-fix/javascript-error-on-accordion
- dev-update/style-tweaks-to-primary-alternate
- dev-feature/DCAS-73-location-hash-to-accordions
- dev-feature/DCAS-89-expand-and-collapse-on-accordion
- dev-LWR-264-Css-changes
- dev-DCAS-78-actionlist-label-and-description-broken
- dev-fix/legal-and-rule-formatting-change-to-embed-and-primary-nav-tweaks
- dev-DCAS-60-rollover-hover-state-parent-link-not-working-as-link
- dev-LWR-247-Update-sidebar-styling
- dev-DCAS-36-rule-styles-demo
- dev-DCAS-60-storybook-add-rollover-hover-state-to-show-dropdown-list-of-both-primary-nav
- dev-LWR-168-storybook-set-body-one-column-component-to-1070-px-approx-129-characters-including-spaces-for-left-and-center-aligned-text
- dev-feature/DCAS-72-add-expand-collapse-all-to-accordions
- dev-additional-la-icons
- dev-LWR-247-Sidebarnav-css-update
- dev-DCAS-46-storybook-hero-button-ct-as-color-variants
- dev-DCAS-54--improved-legal-list-formatting-for-drupal-integration
- dev-feature/LWR-238-content-in-hero-hangover-blurb-2
- dev-feature/LWR-238-content-in-hero-hangover-blurb-z-index-fix
- dev-feature/LWR-238-content-in-hero-hangover-blurb
- dev-DCAS-41--hero-navgiation-icon-sizing-adjustments
- dev-feature/DCAS-44-storybook-primary-nav-variant
- dev-feature/LWR-234-menu-items-cleanup
- dev-DCAS-50-storybook-hover-state-and-rounded-image-for-justices
- dev-DCAS-42-storybook-card-variation-no-media-with-icon-left-of-header
- dev-DCAS-36-preserve-bulleted-style-for-rules-alpha-numeric-roman
- dev-DCAS-44-storybook-secondary-nav-variant-for-dca-with-hover-state
- dev-fix/add-alt-tag-to-logo-icon
- dev-feature/LWR-229-style-bugs
- dev-feature/NEW-25-alert-styling
- dev-LWR-219--storybook--fix-to-sidebarnav-heading
- dev-LWR-219--storybook--style-fixes-for-june14-release
- dev-feature/LWR-209-nav-look-and-feel
- dev-feature/primarynav-overview-link-setup
- dev-fix/webform-styling-conflict
- dev-fix/more-style-fixes-for-mediaexcerpt
- dev-fix/multiple-fixes-for-viewresults-primarynav-sidebarnav-etc
- dev-LWR-122--publication-viewresults-updates-and-other-fixes
- dev-feature/LWR-167-more-webform-fields
- dev-feature/LWR-210-header-navigation-work
- dev-LWR-182--storybook-side-navigation
- dev-feature/LWR-195-table-styling
- dev-feature/LWR-131-card-lead-max-width
- dev-fix/move-viewresults-body-fix
- dev-fix/action-lists-padding-issue
- dev-LWR-84--views-results-generic-component-for-search-page-and-publication-page
- dev-fix/style-updates-and-rtl-fixes
- dev-feature/LWR-144-webform-styling
- dev-feature/LWR-205--hangover-hero-bg-schemes
- dev-LWR-100--add-rtl-functionality-to-storybook
- dev-feature/LWR-192--TeaserPlusList-Add-Heading-Button
- dev-fix/style-and-layout-fixes-for-many-components
- dev-feature/LWR-122-pub-results-page-2
- dev-LWR-181--breadcrumb-component
- dev-LWR-84--search-results-page--inline-form-and-results
- dev-fix/media-excerpt-template-fixes
- dev-LWR-153--implement-basic-styles-for-form-elements
- dev-LWR-92--main-nav-adjustments
- dev-feature/LWR-134-action-lists
- dev-Phil/addition-of-Body-component
- dev-Phil/accordion-step-alert-cleanup
- dev-feature/LWR-157-icons-not-showing
- dev-calvin/LWR-137--teaser-plus-list-tweaks
- dev-LWR-119--storybook-design-changes
- dev-feature/LWR-137--stacked-variant-teaserpluslist
- dev-LWR-119-storybook-step-by-step
- dev-calvin/LWR-137--brow-tweaks
- dev-feature/LWR-137--show-separator-only-if-both-parts-available
- dev-feature/iframe-component
- dev-Phil/adjustments-to-icons
- dev-LWR-84-search-results-page--storybook-pager
- dev-feature/LWR-122-publications-results-page
- dev-Phil/adjustments-to-accordion
- dev-Phil/adjustments-to-alert-styles
- dev-calvin/LWR-79-storybook-tabs-component
- dev-feature/publication-exceprts
- dev-LWR-108-storybook-alert
- dev-LWR-79-storybook-tabs-component
- dev-feature/pills-molecule
- dev-LWR-64-build-accordion-component-storybook
- dev-feature/LWR-51-site-branding
- dev-feature/LWR-42-Shoe-01
- dev-feature/LWR-41-hat
- dev-feature/LWR-39--form-fields
- dev-feature/LWR-33-Email-signup
- dev-feature/LWR32--section-background-image
- dev-featue/LWR-32-cards-with-background-images
- dev-feature/hangover
- dev-feature/LWR-39-contact-us-form-fields
- dev-feature/LWR-38-greyhero-component
This package is auto-updated.
Last update: 2024-12-13 20:50:02 UTC
README
JCC Storybook is a component library and a base theme for Drupal built by the Judicial Council of California.
This library uses algorithmic/intrinsic layout techniques and 13 "Layout Primitives", instead of media queries and breakpoints, to compose complex layouts. It allows content to expand or contract according to its needs, and still adapts to infinite screen sizes.
Layout Primitives are composed into Atomic Components, that are used to build templates and pages.
For more details about the methodologies used in this component library see: https://judicialcouncilofcalifornia.github.io/jcc_storybook/?path=/docs/documentation-intro--default
External References:
- https://every-layout.dev/rudiments/
- https://aneventapart.com/news/post/designing-intrinsic-layouts-aea-video
- https://atomicdesign.bradfrost.com/table-of-contents/
Installation
Requirements
Use
- Install with composer to your drupal project.
composer require judicialcouncil/jcc_storybook
- Enable the base theme in drupal via the UI or with drush:
drush en jcc_storybook
- Create a new theme with the following line in your
info.yml
file:base theme: jcc_storybook
- Include twig templates into your theme via
@atoms/button.twig
, etc. COMING SOON
Pattern Library Development
For development of the pattern library only. Not required to use this as a base theme.
Requirements
- Node 18 to run preview site
- Node 16 to export scheme & lib for production use
Installation
- Clone this repo and cd to the directory
nvm use
: to use the specified version of Node. (If using nvm to manage node. You may need to install the appropriate version.)npm install
: to install the required development packages.npm run storybook
: to start storybook. It will open a new browser window.
Creating Components
There is a package installed to help make development easier, by generating component scaffolds for you. The package is called Plop JS. You don't need to learn or configure it. Just create new components by running it and following the prompts.
npm run plop
- Enter a component name. i.e.
Card
- Select a component type. i.e.
Molecules
The new component will appear at src/stories/Molecules/Card
For more information about how to develop components for this library, see the "Documentation" section on the sidebar of Storybook.
Icons
Must use Node 16.
- Update
src/assets/icons
directory. - Update
src/assest/icons.json
. npm run sprite
: Builds icons.svg sprite.
Exporting Scheme, & Lib for Production
Must use Node 16.
npm run scheme
: Generates theme scheme.npm run lib
: Processes CSS and JavaScript for production use.- Update
History.md
to specify production version for Composer use.
Projects using JCC Storybook
- Courts
- Appellate
- Language Access
- Language Toolkit
- Storefront
Links
- Project Page: https://judicialcouncilofcalifornia.github.io/jcc_storybook/master/docs/?path=/docs/documentation-intro--default
- Documentation: https://judicialcouncilofcalifornia.github.io/jcc_storybook/master/docs/?path=/docs/documentation-intro--default
- Support: https://www.courts.ca.gov/policyadmin-jc.htm