yustintr/storyblend 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yustintr/storyblend

最新稳定版本:0.1.2

Composer 安装命令:

composer require yustintr/storyblend

包简介

StoryBlend Base Theme for Drupal x Storybook

README 文档

README

StoryBlend is a powerful Drupal starter theme seamlessly integrated with Storybook, offering a robust foundation for building and showcasing dynamic Drupal themes. This theme follows the BEM (Block Element Modifier) methodology for writing modular and maintainable CSS. Getting Started

To get started with StoryBlend, follow these steps:

Use StoryBlend:

composer require yustintr/storyblend

Clone the repository:

git clone  git@github.com:yustinTR/StoryBlend.git

Install dependencies:

npm install

Development Workflow

Run Storybook

Start Storybook to preview and develop your theme components:

npm run storybook

Visit http://localhost:6006/ in your browser to view the Storybook.

Compile CSS

Compile and build your Drupal theme using the following command:

npm run dev/build

This command will process your CSS files following the BEM methodology, ensuring modularity and maintainability.

Create theme

To create a custom theme from this bases you can run the command composer create-theme <themename> from the StoryBlend folder. This will create the theme in the themes/custom folder. The argument is optional. When omitted the theme will be called StoryBlend.

BEM Methodology

The CSS in StoryBlend is written following the BEM (Block Element Modifier) methodology. BEM is a naming convention that helps create clear and maintainable code. Here's a brief overview:

Block: Represents a standalone component that is meaningful on its own.

.block {}

Element: Represents a part of a block and has no standalone meaning.

.block__element {}

Modifier: Represents a different state or version of a block or an element.

.block--modifier {}
.block__element--modifier {}

Ensure your CSS adheres to the BEM methodology for consistency and scalability.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: SCSS

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固