Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ymcatwincities/paragraph_skins
Skins component from OpenY. Drupal 8/9 module.
https://github.com/ymcatwincities/paragraph_skins
drupal-module drupal8 drupal9 openy openy-decoupled paragraph-skins paragraphs
Last synced: about 2 months ago
JSON representation
Skins component from OpenY. Drupal 8/9 module.
- Host: GitHub
- URL: https://github.com/ymcatwincities/paragraph_skins
- Owner: ymcatwincities
- License: lgpl-3.0
- Archived: true
- Created: 2020-03-06T11:33:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T11:05:50.000Z (almost 4 years ago)
- Last Synced: 2024-09-24T03:02:47.648Z (about 2 months ago)
- Topics: drupal-module, drupal8, drupal9, openy, openy-decoupled, paragraph-skins, paragraphs
- Language: PHP
- Homepage: https://www.drupal.org/project/paragraph_skins
- Size: 32.2 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
### Paragraph Skins
This module implements custom styles for the paragraph bundle by adding select fields with custom libraries.
Frontend developer uses Paragraph Skins to implement various CSS or js library for one paragraph type.### How to use:
If you want to add additional skins, please create a new file or add new items to the
.paragraph_skins.yml file and clear cache.
After this action, new skins will appear at the system.##### Explaining for data:
Data structure is the standard array in the YAML file.
```yaml
.paragraph_skins:
- name: feature-card // Skin key
label: 'Feature card'
paragraph_type: 1c // Paragraph bundle to which we want attach this skin
library: 'openy_prgf_1c/feature-card' // Library for skin
theme_library:
openy_carnation: 'openy_carnation/feature-card' // Theme name and library name
```##### Explaining for preprocess:
At paragraph edit form, user is able to select additional skin for paragraph entity.
Select list contains only skins, which are prepared for this paragraph bundle.