How do I access the paragraph value?
Need to add below code in your theme file

themename.theme

/**
 * Implements hook_preprocess_node().
 */
function theme_preprocess_node(array &amp;$variables) {
  $node = $variables['node'];
  switch ($node-&gt;getType()) {
    case 'article':
      $my_paragraph = null;
      foreach ($node-&gt;get('field_content') as $paragraph) {
        if ($paragraph-&gt;entity-&gt;getType() == 'my_paragraph') { // Change to your paragraph type
          $my_paragraph = $paragraph-&gt;entity;
        }
      }

      if (!empty($my_paragraph)) {
        $variable['test'] = $my_paragraph-&gt;field_test-&gt;value;
      }

      break;
  }
}